[10.0.32.dev] identifiant vide généré
This commit is contained in:
parent
0ec345a8b4
commit
c6aa384f12
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue