summaryrefslogtreecommitdiffstats
path: root/pages
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
parent51d99728286212717003009dd5706bb74edcb272 (diff)
downloadpathery-86aac4847705f0a4559400da6c0e9f1aeba5cdf8.tar.xz
Many bugs and PHP notices & warning fixes.
Diffstat (limited to 'pages')
-rw-r--r--pages/chat.php2
-rw-r--r--pages/home.php2
-rw-r--r--pages/memberlist.php5
3 files changed, 3 insertions, 6 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';
diff --git a/pages/home.php b/pages/home.php
index 696c0cc..9c4cf3d 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -90,7 +90,7 @@ function adToggle() {
<?php
topbar($Links);
-$showAd = ($_COOKIE['pref_showAd'] == "yes");
+$showAd = (isset($_COOKIE['pref_showAd']) AND $_COOKIE['pref_showAd'] == "yes");
$adClass = 'adHidden';
$adShow = 'Hide';
if ($showAd) {
diff --git a/pages/memberlist.php b/pages/memberlist.php
index b68c60b..da2264d 100644
--- a/pages/memberlist.php
+++ b/pages/memberlist.php
@@ -15,11 +15,6 @@ topbar($Links);
javascript:membersShowPage(1);
</script>
-<?
-
-$json = json_encode($data);
-
-?>
<div class='wrapper'>
<h2>Members</h2>
<!-- To be added later or never