diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index d85789f856ee7ff6012fcbee88dd03e3f8363933..39248c8bf0b713f12dce53bff3d3655696dfd3a0 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -347,7 +347,7 @@ function ancre_url($url, $ancre) { } $ancre = preg_replace(array('/^[^-_a-zA-Z0-9]+/', '/[^-_a-zA-Z0-9]/'), array('', '-'), translitteration($ancre)); - return $url . strlen($ancre) ? '#'. $ancre : ''; + return $url . (strlen($ancre) ? '#'. $ancre : ''); } //