From: Andrew Dolgov Date: Sat, 31 Jan 2015 15:48:11 +0000 (+0300) Subject: session: don't try to validate session schema version on empty sessions X-Git-Tag: 16.3~369 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ffc3a1e5792cd902d6ccfd7e7fede4d445b23794;p=tt-rss.git session: don't try to validate session schema version on empty sessions --- diff --git a/include/sessions.php b/include/sessions.php index 12925a51..30d50264 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -62,7 +62,7 @@ return false; } - if ($_SESSION["ref_schema_version"] != session_get_schema_version(true)) { + if (isset($_SESSION["ref_schema_version"]) && $_SESSION["ref_schema_version"] != session_get_schema_version(true)) { $_SESSION["login_error_msg"] = __("Session failed to validate (schema version changed)"); return false;