summaryrefslogtreecommitdiffstats
path: root/ajax/chat.ajax.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 /ajax/chat.ajax.php
parent51d99728286212717003009dd5706bb74edcb272 (diff)
downloadpathery-86aac4847705f0a4559400da6c0e9f1aeba5cdf8.tar.xz
Many bugs and PHP notices & warning fixes.
Diffstat (limited to 'ajax/chat.ajax.php')
-rw-r--r--ajax/chat.ajax.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php
index 97db510..59f7ae3 100644
--- a/ajax/chat.ajax.php
+++ b/ajax/chat.ajax.php
@@ -9,7 +9,7 @@ if (strtotime('now') - $_SESSION['chatLastReset'] > 6) {
$_SESSION['chatSendCount'] = 0;
$_SESSION['chatLastReset'] = strtotime('now');
}
-if ($_REQUEST['messages']) {
+if (isset($_REQUEST['messages'])) {
$_SESSION['chatSendCount']++;
if ($_SESSION['chatSendCount'] > 4) {
$r[0]['error'] = 'Spam';
@@ -40,7 +40,7 @@ require('../includes/chats.php');
$sent = false;
-if ($_REQUEST['messages']) {
+if (isset($_REQUEST['messages'])) {
$date = isMuted($userID);
if ($date !== false) {
$r[0]['error'] = 'Muted';