LiveUser: Bug in LiveUser_Admin_Perm_DB_Common::getRights() ???
| From: | Olaf Krüger | Date: | Thu, 06 Nov 2003 11:48:50 +0000 |
| Subject: | LiveUser: Bug in LiveUser_Admin_Perm_DB_Common::getRights() ??? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-8811@lists.php.net to get a copy of this message | ||
hi,
I'm not sure, but it seems to me that there's a bug in
"LiveUser_Admin_Perm_DB_Common::getRights()"
I tried to get all rights inside a passed group, but the return is empty:
/*
* example
*/
$objRightsAdminPerm = new LiveUser_Admin_Perm_Container_DB_Complex($lu_dsn,$liveuserConfig);
// set group id
$GroupId = 1;
// set options for query
$options = array('where_group_id' => $GroupId);
// call method to get rights associate to passed group
$rights = $objRightsAdminPerm->getRights($options);
print_r($rights); // outputs empty array();
/*
* end of example
*/
/* code extract from
* "LiveUser_Admin_Perm_DB_Common::getRights()" (DB_Common.php)
* @version $Id: DB_Common.php,v 1.23 2003/10/06 19:11:48 arnaud Exp $
*/
LINE 1362: if (isset($options['where_group_id']) &&
is_numeric($options['where_area_id'])) {
LINE 1394: if (isset($options['where_group_id']) &&
is_numeric($options['where_area_id'])) {
I think it should be :
LINE 1362: if (isset($options['where_group_id']) &&
is_numeric($options['where_group_id'])) {
LINE 1394: if (isset($options['where_group_id']) &&
is_numeric($options['where_group_id'])) {
Or is there a correlation between GROUP'S and AREA's so that I must pass a Group-Id AND a
Area-Id to the method ?
greetings
olaf