summaryrefslogtreecommitdiffstats
path: root/ajax/chat.ajax.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-05-16 17:19:15 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-05-16 17:19:15 -0700
commit329cc1f9b6657ce580b3a297e39a7cd259a62537 (patch)
treedca09b3a78fcdb9a39646f8968312bf0c722b455 /ajax/chat.ajax.php
parentc6e4239a672d2456c67e219da480a63f77056723 (diff)
downloadpathery-329cc1f9b6657ce580b3a297e39a7cd259a62537.tar.xz
More PHP warning and notice 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 c191b33..07df57c 100644
--- a/ajax/chat.ajax.php
+++ b/ajax/chat.ajax.php
@@ -9,7 +9,7 @@ session_start();
if (isset($_SESSION['chatLastReset'])) $chatLastReset = $_SESSION['chatLastReset'];
else $chatLastReset = 0;
-if (strtotime('now') - $_SESSION['chatLastReset'] > 6) {
+if (strtotime('now') - $chatLastReset > 6) {
$_SESSION['chatSendCount'] = 0;
$_SESSION['chatLastReset'] = strtotime('now');
}
@@ -70,7 +70,7 @@ if (isset($_REQUEST['messages'])) {
$messages = $_REQUEST['messages'];
$messages = explode("|:|", $messages);
foreach ($messages as $message) {
- //$message = chatFilter(stripslashes($message));
+ $message = chatFilter($message);
if ($message[0] == "/") {
$arguements = explode(" ", substr($message, 1));
$command = $arguements[0];