Remove another silly mistake in update() for owner field

This commit is contained in:
Miles Lott 2001-03-24 15:51:28 +00:00
parent db4c710847
commit 99f310b1b4

View File

@ -594,7 +594,7 @@
if (empty($ldap_fields[0]['phpgwowner'])) { if (empty($ldap_fields[0]['phpgwowner'])) {
$stock_fields['phpgwowner'] = $owner; $stock_fields['phpgwowner'] = $owner;
$err = ldap_modify($this->ldap,$dn,array('phpgwowner' => $stock_fields['phpgwowner'])); $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; $stock_fields['phpgwowner'] = $owner;
$err = ldap_mod_add($this->ldap,$dn,array('phpgwowner' => $stock_fields['phpgwowner'])); $err = ldap_mod_add($this->ldap,$dn,array('phpgwowner' => $stock_fields['phpgwowner']));
} }
@ -626,7 +626,7 @@
// OK, just add the data already // OK, just add the data already
while ( list($fname,$fvalue) = each($stock_fieldnames) ) { while ( list($fname,$fvalue) = each($stock_fieldnames) ) {
if ($ldap_fields[0][$fvalue]) { 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])); $err = ldap_modify($this->ldap,$dn,array($fvalue => $stock_fields[$fname]));
} elseif (!$ldap_fields[0][$fvalue]) { } elseif (!$ldap_fields[0][$fvalue]) {
//echo "<br>".$fname." not there"; //echo "<br>".$fname." not there";