mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix deprecation warning in PHP 8.x
This commit is contained in:
parent
6479f3967b
commit
9fbcda3e79
1 changed files with 1 additions and 1 deletions
|
|
@ -318,7 +318,7 @@ class Context
|
|||
}
|
||||
}
|
||||
|
||||
$lang_type = preg_replace('/[^a-zA-Z0-9_-]/', '', $lang_type);
|
||||
$lang_type = preg_replace('/[^a-zA-Z0-9_-]/', '', $lang_type ?? '');
|
||||
if ($set_lang_cookie)
|
||||
{
|
||||
setcookie('lang_type', $lang_type, time() + 86400 * 365, \RX_BASEURL, '', !!config('session.use_ssl_cookies'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue