From ed15587c4f62f8123ab04ad419d2cf8715a58fe1 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 4 Jan 2024 01:06:53 +0900 Subject: [PATCH] Fix deprecation warning when header script is empty --- modules/layout/layout.model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {