From f58cabb5668425b25af35a21df796e43e36688e1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 19 Nov 2006 04:59:45 +0000 Subject: [PATCH] Mise en facteur de nombreux code et uniformisation codage sur le LDAP --- scripts/company/sync_contacts_dolibarr2ldap.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) {