Param null passé

This commit is contained in:
Fred Tempez 2022-10-04 10:28:07 +02:00
parent 5cfa4291dc
commit 0f49c1308c
1 changed files with 4 additions and 1 deletions

View File

@ -2113,7 +2113,10 @@ class common
// Sur une page sans module
or $this->getData(['page', $this->getUrl(0), 'moduleId']) === ''
// Sur une page avec un module invalide
or !class_exists($this->getData(['page', $this->getUrl(2), 'moduleId']))
OR (
!is_null($this->getData(['page', $this->getUrl(2), 'moduleId'])) &&
!class_exists($this->getData(['page', $this->getUrl(2), 'moduleId']))
)
// Sur une page d'accueil
or $this->getUrl(0) === ''
) {