diff --git a/addressbook/inc/class.contacts_ldap.inc.php b/addressbook/inc/class.contacts_ldap.inc.php index e6d90b73bb..986c8d8887 100644 --- a/addressbook/inc/class.contacts_ldap.inc.php +++ b/addressbook/inc/class.contacts_ldap.inc.php @@ -594,7 +594,7 @@ if (empty($ldap_fields[0]['phpgwowner'])) { $stock_fields['phpgwowner'] = $owner; $err = ldap_modify($this->ldap,$dn,array('phpgwowner' => $stock_fields['phpgwowner'])); - } elseif (!$ldap_fields[0]['owner']) { + } elseif (!$ldap_fields[0]['phpgwowner']) { $stock_fields['phpgwowner'] = $owner; $err = ldap_mod_add($this->ldap,$dn,array('phpgwowner' => $stock_fields['phpgwowner'])); } @@ -626,7 +626,7 @@ // OK, just add the data already while ( list($fname,$fvalue) = each($stock_fieldnames) ) { if ($ldap_fields[0][$fvalue]) { - //echo "
".$fname." was there"; + //echo "
".$fname." => ".$fvalue." was there"; $err = ldap_modify($this->ldap,$dn,array($fvalue => $stock_fields[$fname])); } elseif (!$ldap_fields[0][$fvalue]) { //echo "
".$fname." not there";