From 8174a0dc2a9b967835f9106c387331d71643b8dd Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 22 Mar 2022 15:44:52 +0100 Subject: [PATCH] merge --- module/gallery/gallery.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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