summaryrefslogtreecommitdiffstats
path: root/pages/chat.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-05-10 02:17:14 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-05-10 02:17:14 -0700
commit86aac4847705f0a4559400da6c0e9f1aeba5cdf8 (patch)
treec8c43ab196e5a0a4d280ea84152be5d0e061e0c7 /pages/chat.php
parent51d99728286212717003009dd5706bb74edcb272 (diff)
downloadpathery-86aac4847705f0a4559400da6c0e9f1aeba5cdf8.tar.xz
Many bugs and PHP notices & warning fixes.
Diffstat (limited to 'pages/chat.php')
-rw-r--r--pages/chat.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/pages/chat.php b/pages/chat.php
index d479f7b..8b8217d 100644
--- a/pages/chat.php
+++ b/pages/chat.php
@@ -70,6 +70,8 @@ function getChatDone(data) {
var timestamp = postDate.format("hh:MM:ss");
var timestampDetails = postDate.format("ddd h:MM TT");
+ if (!chat.message) return;
+
var strClass = '';
if (chat.userID == userObj.ID) {
strClass += ' self';