From ed807249fefd31413791dc1007ecdd6a34563128 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 1 May 2020 13:43:27 +0200 Subject: [PATCH] =?UTF-8?q?2.25=20=C3=A9dition=20dela=20galerie=20=20chang?= =?UTF-8?q?e=20sa=20position?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/gallery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index b625e52b..8c2d8ac9 100755 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -19,7 +19,7 @@ class gallery extends common { const SORT_ASC = 'SORT_ASC'; const SORT_DSC = 'SORT_DSC'; const SORT_HAND = 'SORT_HAND'; - const GALLERY_VERSION = '2.24'; + const GALLERY_VERSION = '2.25'; public static $directories = []; @@ -372,7 +372,7 @@ class gallery extends common { 'homePicture' => $homePicture, // pas de positions, on active le tri alpha 'sort' => $this->getInput('galleryEditSort'), - 'position' => $this->getData(['module', $this->getUrl(0), $galleryId,'config','positions']) === '' ? count($this->getData(['module',$this->getUrl(0)]))-1 : $this->getData(['module', $this->getUrl(0), $galleryId,'config','positions']), + 'position' => $this->getData(['module', $this->getUrl(0), $galleryId,'config','positions']) === null ? count($this->getData(['module',$this->getUrl(0)]))-1 : $this->getData(['module', $this->getUrl(0), $galleryId,'config','positions']), 'fullScreen' => $this->getInput('galleryEditFullscreen', helper::FILTER_BOOLEAN) ],