diff --git a/modules/layout/layout.model.php b/modules/layout/layout.model.php index 758ce8502..019e0a135 100644 --- a/modules/layout/layout.model.php +++ b/modules/layout/layout.model.php @@ -783,7 +783,7 @@ class LayoutModel extends Layout // header_script $oModuleModel = getModel('module'); $layout_config = $oModuleModel->getModulePartConfig('layout', $layout_srl); - $header_script = trim($layout_config->header_script); + $header_script = trim($layout_config->header_script ?? ''); if(!empty($header_script)) {