mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix warning when forwarded module info does not contain all attributes
This commit is contained in:
parent
600811a8f0
commit
9175d51bd5
1 changed files with 5 additions and 5 deletions
|
|
@ -510,12 +510,12 @@ class ModuleHandler extends Handler
|
|||
|
||||
if(!empty($forward->module))
|
||||
{
|
||||
$kind = (stripos($forward->act, 'admin') !== false || stripos($forward->class_name, 'admin') !== false) ? 'admin' : '';
|
||||
$type = $forward->type;
|
||||
$ruleset = $forward->ruleset;
|
||||
$kind = (stripos($forward->act, 'admin') !== false || stripos($forward->class_name ?? '', 'admin') !== false) ? 'admin' : '';
|
||||
$type = $forward->type ?? null;
|
||||
$ruleset = $forward->ruleset ?? null;
|
||||
$tpl_path = $oModule->getTemplatePath();
|
||||
$orig_module = $oModule;
|
||||
if($forward->meta_noindex === 'true')
|
||||
if(isset($forward->meta_noindex) && $forward->meta_noindex === 'true')
|
||||
{
|
||||
Context::addMetaTag('robots', 'noindex');
|
||||
}
|
||||
|
|
@ -547,7 +547,7 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
}
|
||||
|
||||
if($forward->class_name)
|
||||
if(!empty($forward->class_name))
|
||||
{
|
||||
if (isset($xml_info->namespaces) && count($xml_info->namespaces))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue