mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 14:22:54 +09:00
Fix warning in PHP 8.0 if user-agent header is missing
This commit is contained in:
parent
8e56fe5912
commit
e1f1de8e49
2 changed files with 2 additions and 2 deletions
|
|
@ -361,7 +361,7 @@ class Context
|
|||
}
|
||||
|
||||
// start session
|
||||
$relax_key_checks = ((self::$_get_vars->act ?? null) === 'procFileUpload' && preg_match('/shockwave\s?flash/i', $_SERVER['HTTP_USER_AGENT']));
|
||||
$relax_key_checks = ((self::$_get_vars->act ?? null) === 'procFileUpload' && preg_match('/shockwave\s?flash/i', $_SERVER['HTTP_USER_AGENT'] ?? ''));
|
||||
Rhymix\Framework\Session::checkSSO($site_module_info);
|
||||
Rhymix\Framework\Session::start(false, $relax_key_checks);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue