Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Thu, 31 Oct 2013 10:26:53 +0000 (11:26 +0100)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Sun, 3 Nov 2013 16:11:17 +0000 (17:11 +0100)
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
upgrade/1.0.1/xnet_directory_name.php

index 5bc7526..5d7e277 100755 (executable)
@@ -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) {