]> git.wh0rd.org Git - tt-rss.git/commitdiff
Check that $_SESSION["uid"] is defined before checking value
authorall <all@hoover>
Fri, 29 Mar 2013 14:17:38 +0000 (15:17 +0100)
committerall <all@hoover>
Fri, 29 Mar 2013 14:17:38 +0000 (15:17 +0100)
include/sessions.php

index 1b1d00cc27237d55c4f09d7640fa8a655f0743b1..d38b79967ed24eac4a529ced32a2b37b08a81ac0 100644 (file)
                if (isset($_COOKIE[$session_name])) {
                        @session_start();
 
-                       if (!$_SESSION["uid"]) {
+                       if (!isset($_SESSION["uid"] || !$_SESSION["uid"]) {
                                session_destroy();
                           setcookie(session_name(), '', time()-42000, '/');
                        }