mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
disabled not working code
This commit is contained in:
parent
1666c3f100
commit
bec1c05070
@ -869,16 +869,19 @@ class so_ldap
|
|||||||
$contact['owner'] = 0;
|
$contact['owner'] = 0;
|
||||||
$contact['private'] = 0;
|
$contact['private'] = 0;
|
||||||
}
|
}
|
||||||
foreach(array(
|
#########################################
|
||||||
'creatorsname' => 'creator',
|
## this piece of code could never have been working, as the call to $GLOBALS['egw']->accounts->name2id is wrong
|
||||||
'modifiersname' => 'modifier',
|
#########################################
|
||||||
) as $ldapFieldName => $egwFieldName)
|
#foreach(array(
|
||||||
{
|
# 'creatorsname' => 'creator',
|
||||||
if (!empty($entry[$ldapFieldName][0]) && preg_match('/^cn=([^,]+),/',$entry[$ldapFieldName][0],$matches))
|
# 'modifiersname' => 'modifier',
|
||||||
{
|
#) as $ldapFieldName => $egwFieldName)
|
||||||
$contact[$egwFieldName] = $GLOBALS['egw']->accounts->name2id($matches[1],'u');
|
#{
|
||||||
}
|
# if (!empty($entry[$ldapFieldName][0]) && preg_match('/^cn=([^,]+),/',$entry[$ldapFieldName][0],$matches))
|
||||||
}
|
# {
|
||||||
|
# $contact[$egwFieldName] = $GLOBALS['egw']->accounts->name2id($matches[1],'u');
|
||||||
|
# }
|
||||||
|
#}
|
||||||
foreach(array(
|
foreach(array(
|
||||||
'createtimestamp' => 'created',
|
'createtimestamp' => 'created',
|
||||||
'modifytimestamp' => 'modified',
|
'modifytimestamp' => 'modified',
|
||||||
|
Loading…
Reference in New Issue
Block a user