diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 6c77cdbf..fa0c8c39 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -605,8 +605,9 @@ class gallery extends common { // Une seule galerie, bifurquer sur celle-ci $gallery = count($this->getData(['module', $this->getUrl(0), 'content'])) === 1 - ? array_key_first($this->getData(['module', $this->getUrl(0), 'content'])) - : $this->getUrl(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