mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
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'])) {
|
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";
|
||||||
|
Loading…
Reference in New Issue
Block a user