From c6aa384f1252ebbe2d66a8d2cdff80c3c7b632e4 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 18 Oct 2019 22:41:00 +0200 Subject: [PATCH] =?UTF-8?q?[10.0.32.dev]=20identifiant=20vide=20g=C3=A9n?= =?UTF-8?q?=C3=A9r=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index 231a9122..d8e39719 100644 --- a/core/core.php +++ b/core/core.php @@ -1805,7 +1805,7 @@ class helper { $text = preg_replace('/([^a-z0-9-])/', '', $text); // Cas où un identifiant est vide if (empty($text)) { - $text = uniqid('page-'); + $text = uniqid(''); } // Un ID ne peut pas être un entier, pour éviter les conflits avec le système de pagination if(intval($text) !== 0) {