mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +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
|
|
@ -467,7 +467,7 @@ class HTMLDisplayHandler
|
|||
$site_module_info = Context::get('site_module_info');
|
||||
$document_srl = Context::get('document_srl');
|
||||
$grant = Context::get('grant');
|
||||
$permitted = $grant->access;
|
||||
$permitted = isset($grant->access) ? $grant->access : false;
|
||||
if (isset($grant->view) && !$grant->view)
|
||||
{
|
||||
$permitted = false;
|
||||
|
|
@ -480,7 +480,7 @@ class HTMLDisplayHandler
|
|||
}
|
||||
else
|
||||
{
|
||||
$oDocument = Context::get('oDocument') ?: getModel('document')->getDocument($document_srl, false, false);
|
||||
$oDocument = Context::get('oDocument') ?: DocumentModel::getDocument($document_srl, false, false);
|
||||
if (is_object($oDocument) && $oDocument->document_srl == $document_srl)
|
||||
{
|
||||
$page_type = 'article';
|
||||
|
|
|
|||
|
|
@ -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