From: Nicolas Iooss Date: Thu, 31 Oct 2013 10:26:53 +0000 (+0100) Subject: Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4 X-Git-Tag: xorg/1.1.10~25 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=517ecea1229f166ce51fe443f428381ad5912f83;p=platal.git Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4 Signed-off-by: Nicolas Iooss --- 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) {