Home » Authentication » LiveUser » Bug #531
Admin_Perm_Container_DB_Medium::addUserToGroup does not work
Details
| Submitted | 2004-01-07 11:21 UTC |
|---|---|
| From | corwin42 at gmx dot de |
| Assigned | arnaud |
| Status | Closed |
| Package | LiveUser |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2004-01-07 11:21 UTC] corwin42 at gmx dot de
Description:
------------
In File Admin/Perm/Container/DB_Medium.php the function addUserToGroup don't work.
The following code is in the function:
$query = 'SELECT COUNT(*) [... rest of select]'
if (!is_null($this->dbc->getOne($query))) {
return false;
}
This will always return false because a "select count(*)" never returns null.
I changed the if clause to:
if ($this->dbc->getOne($query) > 0) {
and this works fine for me.