Skip to content

Commit

Permalink
Fix issue when page has no components (#993)
Browse files Browse the repository at this point in the history
Triggered when getComponentProperties() called on a page with no components present.
  • Loading branch information
mjauvin authored Oct 14, 2023
1 parent f687abc commit 0fd8edf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/CmsCompoundObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ public function getComponentProperties($componentName)
}

return [];
} else {
$objectComponentMap[$objectCode] = [];
}

if (!isset($this->settings['components'])) {
Expand Down

0 comments on commit 0fd8edf

Please sign in to comment.