mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue