diff --git a/core/core.php b/core/core.php index d7146fb1..335e5b8d 100644 --- a/core/core.php +++ b/core/core.php @@ -1442,6 +1442,10 @@ class helper { $text )); $text = preg_replace('/([^a-z0-9-])/', '', $text); + // Cas où un identifiant est vide + if (empty($text)) { + $text = uniqid('page-'); + } // Un ID ne peut pas être un entier, pour éviter les conflits avec le système de pagination if(intval($text) !== 0) { $text = 'i' . $text; @@ -2866,4 +2870,4 @@ class template { // Retourne le html return $html; } -} \ No newline at end of file +}