diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-05-13 01:00:15 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-05-13 01:00:15 -0700 |
commit | 0761f76cc24350c4391efc981e49a9ad9828a94d (patch) | |
tree | 587532e8dbdb4f400c8ac74d3dd8049def23f3cc /ajax | |
parent | 136ce85b66802c663264d5d10ccc6e58efec7059 (diff) | |
download | pathery-0761f76cc24350c4391efc981e49a9ad9828a94d.tar.xz |
Many PHP warnings/notices fixes.
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/chat.ajax.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php index 59f7ae3..9017ab0 100644 --- a/ajax/chat.ajax.php +++ b/ajax/chat.ajax.php @@ -5,6 +5,10 @@ session_start(); // header("HTTP/1.0 404 Not Found");
// exit;
// }
+
+if (isset($_SESSION['chatLastReset'])) $chatLastReset = $_SESSION['chatLastReset'];
+else $chatLastReset = 0;
+
if (strtotime('now') - $_SESSION['chatLastReset'] > 6) {
$_SESSION['chatSendCount'] = 0;
$_SESSION['chatLastReset'] = strtotime('now');
|