1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-18 03:37:35 +01:00

Fixed minor bug causing a PHP warning sometimes

This commit is contained in:
Savetheinternet 2011-04-11 03:29:39 +10:00
parent ca1f6eae83
commit 84c341ccc4

View File

@ -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