forked from extern/egroupware
Remove another silly mistake in update() for owner field
This commit is contained in:
parent
db4c710847
commit
99f310b1b4
@ -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 "<br>".$fname." was there";
|
||||
//echo "<br>".$fname." => ".$fvalue." was there";
|
||||
$err = ldap_modify($this->ldap,$dn,array($fvalue => $stock_fields[$fname]));
|
||||
} elseif (!$ldap_fields[0][$fvalue]) {
|
||||
//echo "<br>".$fname." not there";
|
||||
|
Loading…
Reference in New Issue
Block a user