Modify Accounts Modify function (otherwise crash)

This commit is contained in:
bgigon 2004-01-27 13:33:38 +00:00
parent 284b7cb84f
commit a4b6f98f04

View File

@ -325,7 +325,8 @@
// remove the uid from memberuid
$newData['memberuid'] = array_flip($newData['memberuid']);
unset($newData['memberuid'][$oldAccountID]);
$newData['memberuid'] = array_values(sort(array_flip($newData['memberuid'])));
# $newData['memberuid'] = array_values(sort(array_flip($newData['memberuid'])));
$newData['memberuid'] = array_values(array_flip($newData['memberuid']));
ldap_mod_replace($this->ds, $dn, $newData);
#print ldap_error($this->ds);
}