From 753abaac3b0ffc075b2eb73f55dcb1dc5e58d8f5 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 8 Aug 2005 13:38:16 +0000 Subject: [PATCH] Bugfix --- scripts/ldap-update-allcontact.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/ldap-update-allcontact.php b/scripts/ldap-update-allcontact.php index bf36a2dcaaf..87e8fcdd8c3 100644 --- a/scripts/ldap-update-allcontact.php +++ b/scripts/ldap-update-allcontact.php @@ -39,10 +39,12 @@ if ( $resql ) $num = $db->num_rows($resql); $i = 0; - if ($num == 1) + while ($i < $num) { $row = $db->fetch_row($resql); + print "Mise à jour $row[0]\n"; + $contact = new Contact($db); $contact->id = $row[0]; $contact->update_ldap($user);