From: all Date: Fri, 29 Mar 2013 14:17:38 +0000 (+0100) Subject: Check that $_SESSION["uid"] is defined before checking value X-Git-Tag: 1.7.6~160^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=48ec0b8526f10c9a6399bbe179cd94ac0499ad7a;p=tt-rss.git Check that $_SESSION["uid"] is defined before checking value --- 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, '/'); }