From 45fd35bed59ae81703464371e606afa7b0458903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sat, 21 May 2022 16:39:04 +0200 Subject: [PATCH] bug unique gallery --- module/gallery/gallery.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 69381a3c..aaf5de1b 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -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) {