From 517ecea1229f166ce51fe443f428381ad5912f83 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Thu, 31 Oct 2013 11:26:53 +0100 Subject: [PATCH] Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4 Signed-off-by: Nicolas Iooss --- upgrade/1.0.1/xnet_directory_name.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgrade/1.0.1/xnet_directory_name.php b/upgrade/1.0.1/xnet_directory_name.php index 5bc7526..5d7e277 100755 --- a/upgrade/1.0.1/xnet_directory_name.php +++ b/upgrade/1.0.1/xnet_directory_name.php @@ -29,7 +29,7 @@ while (list($uid, $hruid, $full, $display, $nb_assos, $asso, $comm) = $users->ne $full_name = $full; } $matches = array(); - if (preg_match('/^([\pL.-]+) +(.*)/u', $full_name, &$matches)) { + if (preg_match('/^([\pL.-]+) +(.*)/u', $full_name, $matches)) { $dir_name = mb_strtoupper(trim($matches[2])) . " " . ucwords(trim($matches[1])); if ($comment != "") { if ($nb_assos > 1) { -- 2.1.4