Skip to content

Commit

Permalink
session: don't try to validate session schema version on empty sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Dolgov committed Jan 31, 2015
1 parent ed775e4 commit ffc3a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function validate_session() {
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;
Expand Down

0 comments on commit ffc3a1e

Please sign in to comment.