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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue