]> git.wh0rd.org Git - tt-rss.git/commitdiff
session: don't try to validate session schema version on empty sessions
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 31 Jan 2015 15:48:11 +0000 (18:48 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 31 Jan 2015 15:48:11 +0000 (18:48 +0300)
include/sessions.php

index 12925a511641396b7d7762ffc85f56402b614702..30d502641dd9c3e5cae512a528bdd09616618cc4 100644 (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;