paramètre null passé

This commit is contained in:
Fred Tempez 2022-10-04 10:27:12 +02:00
parent d1d76aaf81
commit e0c6af322a
1 changed files with 4 additions and 1 deletions

View File

@ -2092,7 +2092,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) === ''
) {