mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fix warning in PHP 8.0 when $config->layout_srl is not set
This commit is contained in:
parent
4805a1864b
commit
0c6bc8fbb1
1 changed files with 7 additions and 5 deletions
|
|
@ -15,12 +15,14 @@ class ncenterliteView extends ncenterlite
|
||||||
$this->setTemplatePath($template_path);
|
$this->setTemplatePath($template_path);
|
||||||
|
|
||||||
$oLayoutModel = getModel('layout');
|
$oLayoutModel = getModel('layout');
|
||||||
$layout_info = $oLayoutModel->getLayout($config->layout_srl);
|
if (isset($config->layout_srl) && $config->layout_srl)
|
||||||
|
|
||||||
if($layout_info)
|
|
||||||
{
|
{
|
||||||
$this->module_info->layout_srl = $config->layout_srl;
|
$layout_info = $oLayoutModel->getLayout($config->layout_srl);
|
||||||
$this->setLayoutPath($layout_info->path);
|
if ($layout_info)
|
||||||
|
{
|
||||||
|
$this->module_info->layout_srl = $config->layout_srl;
|
||||||
|
$this->setLayoutPath($layout_info->path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue