summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-04-11 03:29:39 +1000
committerSavetheinternet <savetheinternet@n0v4.com>2011-04-11 03:29:39 +1000
commitc9e33953f316ebcec90b92f905040394c264aa9c (patch)
treece5a9a56accfa5070cf9a0088d6e37a1c9eed8ab
parentae3bae46029af99cfd8e2e5859aefe9b00b11bc5 (diff)
Fixed minor bug causing a PHP warning sometimes
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index 53e0447b..ddccc494 100644
--- a/post.php
+++ b/post.php
@@ -473,7 +473,7 @@
if(isset($_COOKIE[$config['cookies']['js']]))
$js = json_decode($_COOKIE[$config['cookies']['js']]);
else
- $js = Array();
+ $js = (object) Array();
// Tell it to delete the cached post for referer
$js->{$_SERVER['HTTP_REFERER']} = true;
// Encode and set cookie