From ab8f5b5dca5f519355235ab18533cc96e127e308 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 4 Apr 2020 15:56:46 +0200 Subject: [PATCH] =?UTF-8?q?parametre=20template::table=20et=20=C3=A9dition?= =?UTF-8?q?=20de=20galerie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/template.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index 290edf67..cab07c7a 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -630,7 +630,9 @@ class template { $html .= ''; } // Pas de tableau d'Id transmis, générer une numérotation - $rowsId = range(0,count($body)); + if (empty($rowsId)) { + $rowsId = range(0,count($body)); + } // Début contenu $j = 0; foreach($body as $tr) {