From 416f0f6924364ff3241c5f50c49b71ebb74dd71e Mon Sep 17 00:00:00 2001
From: Matthieu Marcillaud <marcimat@rezo.net>
Date: Fri, 18 Feb 2022 17:05:59 +0100
Subject: [PATCH] =?UTF-8?q?Bien=20transmettre=20une=20string=20=C3=A0=20l?=
 =?UTF-8?q?=E2=80=99ancre=20de=20generer=5Fobjet=5Furl?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc/urls.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecrire/inc/urls.php b/ecrire/inc/urls.php
index f4c1085c11..8ac2177976 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") {
-- 
GitLab