From 3ebcb1b2fd10874de2b2b20ef30b45fb73e97268 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 6 Oct 2008 13:36:41 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSaddons=20:=20Correction=20des=20erreurs?= =?UTF-8?q?=20de=20g=C3=A9n=C3=A9ration=20CN=20&=20displayName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/addons/LSaddons.supann.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/trunk/includes/addons/LSaddons.supann.php b/trunk/includes/addons/LSaddons.supann.php index e4b284b2..f9441cf7 100644 --- a/trunk/includes/addons/LSaddons.supann.php +++ b/trunk/includes/addons/LSaddons.supann.php @@ -91,10 +91,10 @@ return; } - $nom = $ldapObject -> attrs[ LS_SUPANN_LASTNAME_ATTR ] -> getValue(); - $prenom = $ldapObject -> attrs[ LS_SUPANN_FIRSTNAME_ATTR ] -> getValue(); + $noms = $ldapObject -> attrs[ LS_SUPANN_LASTNAME_ATTR ] -> getValue(); + $prenoms = $ldapObject -> attrs[ LS_SUPANN_FIRSTNAME_ATTR ] -> getValue(); - return ($prenom.' '.$nom); + return ($prenoms[0].' '.$noms[0]); } /** @@ -116,10 +116,10 @@ return; } - $nom = $ldapObject -> attrs[ LS_SUPANN_LASTNAME_ATTR ] -> getValue(); - $prenom = $ldapObject -> attrs[ LS_SUPANN_FIRSTNAME_ATTR ] -> getValue(); + $noms = $ldapObject -> attrs[ LS_SUPANN_LASTNAME_ATTR ] -> getValue(); + $prenoms = $ldapObject -> attrs[ LS_SUPANN_FIRSTNAME_ATTR ] -> getValue(); - return (replaceAccents($nom).' '.replaceAccents($prenom)); + return (replaceAccents($noms[0]).' '.replaceAccents($prenoms[0])); }