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

session: don't try to validate session schema version on empty sessions

This commit is contained in:
Andrew Dolgov
2015-01-31 18:48:11 +03:00
parent ed775e4e8d
commit ffc3a1e579

View File

@@ -62,7 +62,7 @@
return false; 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["login_error_msg"] =
__("Session failed to validate (schema version changed)"); __("Session failed to validate (schema version changed)");
return false; return false;