Fix selection of fieldnames when using ldap (key=>value of stock fields mixup)

This commit is contained in:
Miles Lott 2001-03-23 20:01:16 +00:00
parent 43f048acca
commit d2b5ae466b

View File

@ -497,8 +497,9 @@
// and we don't want $buffer['BEGIN'] etc...
$contacts = CreateObject('phpgwapi.contacts');
while (list($fname,$fvalue) = each($contacts->stock_contact_fields)) {
if($buffer[$fvalue]) {
$entry[$fvalue] = $buffer[$fvalue];
if($buffer[$fname]) {
$entry[$fname] = $buffer[$fname];
//echo '<br>'.$fname.' = "'.$entry[$fname].'"'."\n";
}
}
return $entry;