mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #2226 warnings when module_info doesn't exist
This commit is contained in:
parent
11b728bf4a
commit
cb7b6cbfde
2 changed files with 8 additions and 5 deletions
|
|
@ -1065,8 +1065,6 @@ class NcenterliteController extends Ncenterlite
|
|||
return;
|
||||
}
|
||||
|
||||
$module_info = Context::get('module_info');
|
||||
|
||||
$oNcenterliteModel = getModel('ncenterlite');
|
||||
$config = NcenterliteModel::getConfig();
|
||||
|
||||
|
|
@ -1082,7 +1080,8 @@ class NcenterliteController extends Ncenterlite
|
|||
}
|
||||
|
||||
// 노티바 제외 페이지이면 중지
|
||||
if(is_array($config->hide_module_srls) && in_array($module_info->module_srl, $config->hide_module_srls))
|
||||
$module_info = Context::get('module_info');
|
||||
if(is_array($config->hide_module_srls) && in_array($module_info->module_srl ?? 0, $config->hide_module_srls))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -1319,6 +1318,10 @@ class NcenterliteController extends Ncenterlite
|
|||
}
|
||||
|
||||
$module_info = Context::get('module_info');
|
||||
if (!$module_info || !$module_info->module)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// DX 익명 체크박스
|
||||
if($module_info->module == 'beluxe' && $triggerObj->anonymous == 'Y')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue