From bec1c05070cede7e5949b7e9a9689101106935a2 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 8 Feb 2008 11:14:47 +0000 Subject: [PATCH] disabled not working code --- addressbook/inc/class.so_ldap.inc.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/addressbook/inc/class.so_ldap.inc.php b/addressbook/inc/class.so_ldap.inc.php index 1647df01c7..5513553c4d 100644 --- a/addressbook/inc/class.so_ldap.inc.php +++ b/addressbook/inc/class.so_ldap.inc.php @@ -869,16 +869,19 @@ class so_ldap $contact['owner'] = 0; $contact['private'] = 0; } - foreach(array( - 'creatorsname' => 'creator', - 'modifiersname' => 'modifier', - ) as $ldapFieldName => $egwFieldName) - { - if (!empty($entry[$ldapFieldName][0]) && preg_match('/^cn=([^,]+),/',$entry[$ldapFieldName][0],$matches)) - { - $contact[$egwFieldName] = $GLOBALS['egw']->accounts->name2id($matches[1],'u'); - } - } + ######################################### + ## this piece of code could never have been working, as the call to $GLOBALS['egw']->accounts->name2id is wrong + ######################################### + #foreach(array( + # 'creatorsname' => 'creator', + # 'modifiersname' => 'modifier', + #) as $ldapFieldName => $egwFieldName) + #{ + # if (!empty($entry[$ldapFieldName][0]) && preg_match('/^cn=([^,]+),/',$entry[$ldapFieldName][0],$matches)) + # { + # $contact[$egwFieldName] = $GLOBALS['egw']->accounts->name2id($matches[1],'u'); + # } + #} foreach(array( 'createtimestamp' => 'created', 'modifytimestamp' => 'modified',