From 550a14a669ca4271db64856ff7c7ce376fc2cd34 Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Wed, 29 May 2013 06:58:14 -0500 Subject: Set up foreign keys within the database. There is a small chance I may have broken emails, unlocks, or chat. Will test :) --- pages/chat.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pages/chat.php') diff --git a/pages/chat.php b/pages/chat.php index 8d3501b..4f903a8 100644 --- a/pages/chat.php +++ b/pages/chat.php @@ -1,7 +1,7 @@ @@ -76,7 +76,7 @@ function getChatDone(data) { if (chat.userID == userObj.ID) { strClass += ' self'; } - if (chat.userID == '-1') { + if (chat.userID == null || chat.userID <= 0) { strClass += ' server'; chat.displayName = 'SERVER' } @@ -110,7 +110,7 @@ function getChatDone(data) { p = p+ " "; p = p+ "
"; - if (chat.userID == '-1') { + if (chat.userID == null || chat.userID <= 0) { p = p+ ""; } else { p = p+ ""; -- cgit v1.2.3