From 2d010b36f2141f4c271f1237d74d17b9d6f28c5c Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 12 Apr 2020 10:09:38 +0200 Subject: [PATCH] =?UTF-8?q?Tri=20des=20galeries=20modifi=C3=A9=20apr=C3=A8?= =?UTF-8?q?s=20=C3=A9dition=20d'une=20galerie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/gallery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index fbec1b1d..66ee1651 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -243,7 +243,7 @@ class gallery extends common { 'directory' => $this->getInput('galleryEditDirectory', helper::FILTER_STRING_SHORT, true), 'homePicture' => $homePicture[0], 'sort' => $this->getInput('galleryEditSort'), - 'position' => count($this->getData(['module',$this->getUrl(0)])) + 'position' => empty($this->getData(['module', $this->getUrl(0), $galleryId,'config','position'])) ? count($this->getData(['module',$this->getUrl(0)])) : $this->getData(['module', $this->getUrl(0), $galleryId,'config','position']) ], 'legend' => $legends, 'position' => empty($picturesPosition) ? $this->getData(['module', $this->getUrl(0), $this->getUrl(2),'position']) : $picturesPosition