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
1 changed files with 1 additions and 1 deletions

View File

@ -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;