From 10b55d8384c75702aebd299cbaaa0fc50a4b7a95 Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Sat, 14 Oct 2023 14:25:33 -0400 Subject: [PATCH] Fix issue when page has no components (#993) Triggered when getComponentProperties() called on a page with no components present. --- modules/cms/classes/CmsCompoundObject.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/cms/classes/CmsCompoundObject.php b/modules/cms/classes/CmsCompoundObject.php index 74767693bd..33a516d0a4 100644 --- a/modules/cms/classes/CmsCompoundObject.php +++ b/modules/cms/classes/CmsCompoundObject.php @@ -294,6 +294,8 @@ public function getComponentProperties($componentName) } return []; + } else { + $objectComponentMap[$objectCode] = []; } if (!isset($this->settings['components'])) {