diff --git a/scripts/company/sync_contacts_dolibarr2ldap.php b/scripts/company/sync_contacts_dolibarr2ldap.php index 207508923fd..9e282151f88 100644 --- a/scripts/company/sync_contacts_dolibarr2ldap.php +++ b/scripts/company/sync_contacts_dolibarr2ldap.php @@ -1,5 +1,6 @@ + * Copyright (C) 2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -63,12 +64,12 @@ if ($resql) { $obj = $db->fetch_object($resql); - print $langs->trans("UpdateContact")." rowid=".$obj->rowid; - $contact = new Contact($db); $contact->id = $obj->rowid; $contact->fetch($contact->id); + print $langs->trans("UpdateContact")." rowid=".$contact->id." ".$contact->fullname; + $result=$contact->update_ldap($user); if ($result > 0) {