diff --git a/bl-kernel/dbpages.class.php b/bl-kernel/dbpages.class.php index 0a438c7a..c52ca8fa 100644 --- a/bl-kernel/dbpages.class.php +++ b/bl-kernel/dbpages.class.php @@ -275,11 +275,9 @@ class dbPages extends dbJSON $newKey = Text::cleanUrl($parent).'/'.Text::cleanUrl($text); } - if($newKey!==$oldKey) - { - // Verify if the key is already been used. - if( isset($this->db[$newKey]) ) - { + if($newKey!==$oldKey) { + // Verify if the key is already been used + if( isset($this->db[$newKey]) ) { if( !Text::endsWithNumeric($newKey) ) { $newKey = $newKey.'-0'; } @@ -290,8 +288,7 @@ class dbPages extends dbJSON } } - if($returnSlug) - { + if($returnSlug) { $explode = explode('/', $newKey); if(isset($explode[1])) {