Fix deprecation warning when header script is empty

This commit is contained in:
Kijin Sung 2024-01-04 01:06:53 +09:00
parent dbd92c191c
commit ed15587c4f

View file

@ -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))
{