Fix warning in PHP 8.0 during unit tests

This commit is contained in:
Kijin Sung 2021-01-28 23:04:27 +09:00
parent c151191b73
commit 8e56fe5912

View file

@ -209,7 +209,7 @@ class Session
}
// If this is not a GET request, do not refresh now.
if ($_SERVER['REQUEST_METHOD'] !== 'GET')
if (!isset($_SERVER['REQUEST_METHOD']) || $_SERVER['REQUEST_METHOD'] !== 'GET')
{
$must_refresh = false;
}