From ffc3a1e5792cd902d6ccfd7e7fede4d445b23794 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 31 Jan 2015 18:48:11 +0300 Subject: [PATCH] session: don't try to validate session schema version on empty sessions --- include/sessions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sessions.php b/include/sessions.php index 12925a511..30d502641 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;