PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.