mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix warning if header script is not defined in layout
This commit is contained in:
parent
bd7ef4bedd
commit
618d075a99
1 changed files with 4 additions and 1 deletions
|
|
@ -264,7 +264,10 @@ class ModuleHandler extends Handler
|
|||
|
||||
// Add layout header script.
|
||||
$part_config = ModuleModel::getModulePartConfig('layout', $layoutSrl);
|
||||
Context::addHtmlHeader($part_config->header_script);
|
||||
if ($part_config && isset($part_config->header_script))
|
||||
{
|
||||
Context::addHtmlHeader($part_config->header_script);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue