Skip to content
Snippets Groups Projects
Commit ffc3a1e5 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

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

parent ed775e4e
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment