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
6c844f91ef
commit
651238916b
8 changed files with 17 additions and 23 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1302,7 +1302,7 @@ class DocumentModel extends Document
|
|||
}
|
||||
|
||||
// check it can use extra variable
|
||||
if(!$load_extra_vars || !$extra_keys = self::getExtraKeys($obj->module_srl))
|
||||
if(!$load_extra_vars || !$extra_keys = self::getExtraKeys($obj->module_srl ?? 0))
|
||||
{
|
||||
$args->sort_index = 'list_order';
|
||||
return $args;
|
||||
|
|
|
|||
|
|
@ -179,8 +179,8 @@ class FileAdminModel extends File
|
|||
protected function _makeSearchParam(&$obj, &$args)
|
||||
{
|
||||
// Search options
|
||||
$search_target = isset($obj->search_target)? ($obj->search_target? $obj->search_target : trim(Context::get('search_target'))) : trim(Context::get('search_target'));
|
||||
$search_keyword = isset($obj->search_keyword)? ($obj->search_keyword? $obj->search_keyword : trim(Context::get('search_keyword'))) : trim(Context::get('search_keyword'));
|
||||
$search_target = isset($obj->search_target)? ($obj->search_target? $obj->search_target : trim(Context::get('search_target'))) : trim(Context::get('search_target') ?? '');
|
||||
$search_keyword = isset($obj->search_keyword)? ($obj->search_keyword? $obj->search_keyword : trim(Context::get('search_keyword'))) : trim(Context::get('search_keyword') ?? '');
|
||||
|
||||
if($search_target && $search_keyword)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,14 +31,8 @@ class menuAdminView extends menu
|
|||
Context::loadLang(RX_BASEDIR.'modules/document/lang/');
|
||||
Context::loadLang(RX_BASEDIR.'modules/layout/lang/');
|
||||
Context::loadLang(RX_BASEDIR.'modules/autoinstall/lang/');
|
||||
$site_srl = Context::get('site_srl');
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
|
||||
if(!$site_srl)
|
||||
{
|
||||
if($logged_info->is_admin == 'Y' && !$site_keyword) $site_srl = 0;
|
||||
else $site_srl = (int)$site_module_info->site_srl;
|
||||
}
|
||||
$site_srl = $site_module_info->site_srl ?? 0;
|
||||
|
||||
// process for unlinked modules
|
||||
if($site_srl == 0)
|
||||
|
|
@ -163,4 +157,4 @@ class menuAdminView extends menu
|
|||
}
|
||||
}
|
||||
/* End of file menu.admin.view.php */
|
||||
/* Location: ./modules/menu/menu.admin.view.php */
|
||||
/* Location: ./modules/menu/menu.admin.view.php */
|
||||
|
|
|
|||
|
|
@ -1034,7 +1034,7 @@ class ModuleModel extends Module
|
|||
$obj->value = $val->attrs->value ?? null;
|
||||
$obj->default = $val->attrs->default ?? null;
|
||||
|
||||
if(preg_match('/,|\|@\|/', $obj->value, $delimiter) && $delimiter[0])
|
||||
if(preg_match('/,|\|@\|/', $obj->value ?? '', $delimiter) && $delimiter[0])
|
||||
{
|
||||
$obj->value = explode($delimiter[0], $obj->value);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class ncenterliteView extends ncenterlite
|
|||
}
|
||||
}
|
||||
|
||||
Context::set('member_info', $member_info);
|
||||
Context::set('member_info', $member_info ?? null);
|
||||
Context::set('notify_types', $notify_types);
|
||||
Context::set('user_config', $user_config);
|
||||
Context::set('user_selected', $user_selected);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue