PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser » Bug #531

Admin_Perm_Container_DB_Medium::addUserToGroup does not work

Details

Submitted2004-01-07 11:21 UTC
Fromcorwin42 at gmx dot de
Assignedarnaud
StatusClosed
PackageLiveUser
PHP VersionIrrelevant
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.