diff --git a/functions.php b/functions.php index 7c12d538d..175817892 100644 --- a/functions.php +++ b/functions.php @@ -1917,9 +1917,11 @@ break; }; - if ($check_ip && strpos($_SERVER['REMOTE_ADDR'], $check_ip) !== 0) - $_SESSION["login_error_msg"] = - __("Session failed to validate (incorrect IP)"); + if ($check_ip && strpos($_SERVER['REMOTE_ADDR'], $check_ip) !== 0) { + $_SESSION["login_error_msg"] = + __("Session failed to validate (incorrect IP)"); + return false; + } if ($_SESSION["ref_schema_version"] != get_schema_version($link, true)) return false;