1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:45:55 +00:00

Check that $_SESSION["uid"] is defined before checking value

This commit is contained in:
all
2013-03-29 15:17:38 +01:00
parent 866bc1678a
commit 48ec0b8526

View File

@@ -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, '/');
}