From 223d100f13c26ac4b65bd8fbdc8c555cb6f6a9bd Mon Sep 17 00:00:00 2001 From: deltacms Date: Mon, 18 Mar 2024 18:46:07 +0100 Subject: [PATCH] correction absence de homePageid --- core/core.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index bd45f47..90add99 100644 --- a/core/core.php +++ b/core/core.php @@ -369,7 +369,12 @@ class common { $this->url = $url; } else { - $this->url = $this->getData(['locale', 'homePageId']); + if( null !== $this->getData(['page', $this->getData(['locale', 'homePageId']) ]) ){ + $this->url = $this->getData(['locale', 'homePageId']); + } else { + $pages = array_keys($this->getData(['page'])); + $this->url = $pages[0]; + } } }