mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix deprecation warnings in PHP 8.2
This commit is contained in:
parent
f7f20a0825
commit
e0a041bb3d
5 changed files with 10 additions and 7 deletions
|
|
@ -55,8 +55,8 @@ class MemberAdminModel extends Member
|
|||
case 'disable' : $args->is_denied = 'Y';break;
|
||||
}
|
||||
|
||||
$search_target = trim(Context::get('search_target'));
|
||||
$search_keyword = trim(Context::get('search_keyword'));
|
||||
$search_target = trim(Context::get('search_target') ?? '');
|
||||
$search_keyword = trim(Context::get('search_keyword') ?? '');
|
||||
|
||||
if($search_target && $search_keyword)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -498,7 +498,7 @@ class MemberModel extends Member
|
|||
{
|
||||
foreach($extra_vars as $key => $val)
|
||||
{
|
||||
if(!is_array($val) && !is_object($val) && strpos($val, '|@|') !== FALSE)
|
||||
if(!is_null($val) && !is_array($val) && !is_object($val) && strpos($val, '|@|') !== FALSE)
|
||||
{
|
||||
$val = explode('|@|', $val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue