forked from leftypol/leftypol
Fixed minor bug causing a PHP warning sometimes
This commit is contained in:
parent
ae3bae4602
commit
c9e33953f3
1 changed files with 1 additions and 1 deletions
2
post.php
2
post.php
|
@ -473,7 +473,7 @@
|
||||||
if(isset($_COOKIE[$config['cookies']['js']]))
|
if(isset($_COOKIE[$config['cookies']['js']]))
|
||||||
$js = json_decode($_COOKIE[$config['cookies']['js']]);
|
$js = json_decode($_COOKIE[$config['cookies']['js']]);
|
||||||
else
|
else
|
||||||
$js = Array();
|
$js = (object) Array();
|
||||||
// Tell it to delete the cached post for referer
|
// Tell it to delete the cached post for referer
|
||||||
$js->{$_SERVER['HTTP_REFERER']} = true;
|
$js->{$_SERVER['HTTP_REFERER']} = true;
|
||||||
// Encode and set cookie
|
// Encode and set cookie
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue