Fix deprecation warnings in PHP 8.2

This commit is contained in:
Kijin Sung 2023-01-17 00:15:12 +09:00
parent 6c844f91ef
commit 651238916b
8 changed files with 17 additions and 23 deletions

View file

@ -853,8 +853,8 @@ class CommentModel extends Comment
}
// Search options
$search_target = (isset($obj->search_target) && $obj->search_target) ? $obj->search_target : trim(Context::get('search_target'));
$search_keyword = (isset($obj->search_keyword) && $obj->search_keyword) ? $obj->search_keyword : trim(Context::get('search_keyword'));
$search_target = (isset($obj->search_target) && $obj->search_target) ? $obj->search_target : trim(Context::get('search_target') ?? '');
$search_keyword = (isset($obj->search_keyword) && $obj->search_keyword) ? $obj->search_keyword : trim(Context::get('search_keyword') ?? '');
if($search_target && $search_keyword)
{
switch($search_target)