From f9617a45ee15953f4f0f8a11235ca99f9715e252 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 17 Apr 2020 14:16:53 +0200 Subject: [PATCH] Warning count galerie inexistante --- 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 42efd90c..c49cbb10 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -49,7 +49,7 @@ class gallery extends common { public static $thumbs = []; - const GALLERY_VERSION = '2.14'; + const GALLERY_VERSION = '2.15'; /** @@ -148,7 +148,7 @@ class gallery extends common { 'directory' => $this->getInput('galleryConfigDirectory', helper::FILTER_STRING_SHORT, true), 'homePicture' => $homePicture, 'sort' => self::SORT_ASC, - 'position' => count($this->getData(['module',$this->getUrl(0)])) + 1, + 'position' => $this->getData(['module',$this->getUrl(0)]) !== null ? count($this->getData(['module',$this->getUrl(0)])) + 1 : 0, 'fullScreen' => false ], 'legend' => [],