Bug with removing a user
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]> Tue, 15 Nov 2005 15:41:58 +1100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Ive discovered a bug removing a user with the cvs version i was told to
get, if i do
$lu->admin->removeUser(array('perm_user_id'=>1));
Here is the error i get
Pear Errors with the system
Info: MDB2 Error: syntax error
[Last query: UPDATE liveuser_groups SET
= NULL]
In the complex method removeUser
$data = array('owner_user_id' => null);
$filter = array('owner_user_id' => $filters['perm_user_id']);
$result = $this->updateGroup($data, $filter);
if ($result === false) {
return false;
}
Why is it trying to update the groups ? There is no updateGroup method
in complex anyway.
Also how do i make removeUser also remove the area and user rights ??