mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix deprecation warnings in PHP 8.2
This commit is contained in:
parent
a6872d6e2a
commit
b6d78becc9
3 changed files with 6 additions and 7 deletions
|
|
@ -520,7 +520,7 @@ class boardView extends board
|
|||
// set member_srl for view particular member's document
|
||||
if($this->module_info->use_anonymous !== 'Y')
|
||||
{
|
||||
$args->member_srl = abs(Context::get('member_srl'));
|
||||
$args->member_srl = abs(Context::get('member_srl') ?? 0) ?: null;
|
||||
}
|
||||
|
||||
// if the category is enabled, then get the category
|
||||
|
|
|
|||
|
|
@ -1384,7 +1384,7 @@ class DocumentModel extends Document
|
|||
$query_id = null;
|
||||
$use_division = false;
|
||||
$search_target = $searchOpt->search_target ?? null;
|
||||
$search_keyword = trim($searchOpt->search_keyword ?? null) ?: null;
|
||||
$search_keyword = trim($searchOpt->search_keyword ?? '') ?: null;
|
||||
|
||||
// search
|
||||
if($search_target && $search_keyword)
|
||||
|
|
@ -1397,7 +1397,7 @@ class DocumentModel extends Document
|
|||
case 'tag' :
|
||||
case 'title_content' :
|
||||
$use_division = true;
|
||||
$search_keyword = trim(utf8_normalize_spaces($search_keyword));
|
||||
$search_keyword = trim(utf8_normalize_spaces($search_keyword ?? ''));
|
||||
if($search_target == 'title_content')
|
||||
{
|
||||
$args->s_title = $search_keyword;
|
||||
|
|
|
|||
|
|
@ -449,18 +449,17 @@ class editorController extends editor
|
|||
if($component->extra_vars)
|
||||
{
|
||||
$extra_vars = unserialize($component->extra_vars);
|
||||
if($extra_vars->target_group)
|
||||
if(!empty($extra_vars->target_group))
|
||||
{
|
||||
$xml_info->target_group = $extra_vars->target_group;
|
||||
}
|
||||
|
||||
if($extra_vars->mid_list && count($extra_vars->mid_list))
|
||||
if(!empty($extra_vars->mid_list))
|
||||
{
|
||||
$xml_info->mid_list = $extra_vars->mid_list;
|
||||
}
|
||||
|
||||
// Check the configuration of the editor component
|
||||
if($xml_info->extra_vars)
|
||||
if(!empty($xml_info->extra_vars))
|
||||
{
|
||||
foreach($xml_info->extra_vars as $key => $val)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue