bug unique gallery

This commit is contained in:
Fred Tempez 2022-05-21 16:39:04 +02:00
parent 0276406577
commit 45fd35bed5
1 changed files with 1 additions and 2 deletions

View File

@ -645,11 +645,10 @@ class gallery extends common {
// Mise à jour des données de module
$this->update();
// Une seule galerie, bifurquer sur celle-ci
$gallery = $this->getData(['module', $this->getUrl(0), 'theme', 'showUniqueGallery']) === true &&
$gallery = $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery']) === true &&
count($this->getData(['module', $this->getUrl(0), 'content'])) === 1
? array_key_first($this->getData(['module', $this->getUrl(0), 'content']))
: $this->getUrl(1);
// Images d'une galerie
if($gallery) {
// La galerie n'existe pas
if($this->getData(['module', $this->getUrl(0), 'content', $gallery]) === null) {