From 48ec0b8526f10c9a6399bbe179cd94ac0499ad7a Mon Sep 17 00:00:00 2001 From: all Date: Fri, 29 Mar 2013 15:17:38 +0100 Subject: [PATCH] Check that $_SESSION["uid"] is defined before checking value --- include/sessions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sessions.php b/include/sessions.php index 1b1d00cc..d38b7996 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -106,7 +106,7 @@ if (isset($_COOKIE[$session_name])) { @session_start(); - if (!$_SESSION["uid"]) { + if (!isset($_SESSION["uid"] || !$_SESSION["uid"]) { session_destroy(); setcookie(session_name(), '', time()-42000, '/'); } -- 2.39.5