diff --git a/ecrire/inc/urls.php b/ecrire/inc/urls.php
index f4c1085c11819ea6dfe35cf64c09ab9b83a3b65d..8ac2177976c8d7984119fa2c39fa851541ccc15c 100644
--- a/ecrire/inc/urls.php
+++ b/ecrire/inc/urls.php
@@ -215,7 +215,7 @@ function urls_transition_retrouver_anciennes_url_html(string $url, string $entit
 					or (defined('_VAR_PREVIEW') and _VAR_PREVIEW and autoriser('voir', $type, $id_objet))
 				)
 			) {
-				[, $hash] = array_pad(explode('#', $url_propre), 2, null);
+				[, $hash] = array_pad(explode('#', $url_propre), 2, '');
 				$args = [];
 				foreach (array_filter(explode('&', $suite)) as $fragment) {
 					if ($fragment != "$_id=$id_objet") {