X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/6e081c5f9eef8c01f290e84eadcd328234e53e7b..0f9549a5088b1a76553e8af3f2ae14afb2a5e3c9:/lib/utils.inc.php?ds=sidebyside diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 723a133..13d5ec9 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -97,7 +97,7 @@ class Utils implements Serializable { if (!is_object(self::$_instance)) { if (isset($_SESSION['Utils'])) { self::$_instance = unserialize($_SESSION['Utils']); - file_put_contents('/tmp/dump', 'Unserialize called: '.var_export($this, true), FILE_APPEND); + file_put_contents('/tmp/dump', 'Unserialize called: '.var_export(self::$_instance, true), FILE_APPEND); } else { self::$_instance = new Utils(); } @@ -110,7 +110,7 @@ class Utils implements Serializable { exit; session_unset(); session_destroy(); - self::$_instance = null; + self::$_instance->user = null; self::$_instance->is_admin = false; $_SESSION['Utils'] = serialize(self::$_instance); } else {