diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-05-29 06:58:14 -0500 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-05-29 06:58:14 -0500 |
commit | 550a14a669ca4271db64856ff7c7ce376fc2cd34 (patch) | |
tree | 09ec13ba6e09906aaded8d97a27205075ac6a879 /pages/chat.php | |
parent | 4a7b4e549fbbdb81aea8d837685ff83e0391ba86 (diff) | |
download | pathery-550a14a669ca4271db64856ff7c7ce376fc2cd34.tar.xz |
Set up foreign keys within the database. There is a small chance I may have broken emails, unlocks, or chat. Will test :)
Diffstat (limited to 'pages/chat.php')
-rw-r--r-- | pages/chat.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ <?php
htmlHeader(
array('stats', 'chat'), 'Chat',
- 'BetaChat for Pathery.com',
+ 'Chat for Pathery.com',
array('scores', 'dateformat')
);
?>
@@ -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+ " </div>";
p = p+ " <div class='chatColumn2'>";
- if (chat.userID == '-1') {
+ if (chat.userID == null || chat.userID <= 0) {
p = p+ "<span class='chatUsername"+usernameClass+"'><a href='home'>";
} else {
p = p+ "<span class='chatUsername"+usernameClass+"'><a href='achievements?id="+chat.userID+"' style='color:"+chat.displayColor+"'>";
|