cvs: pear /LiveUser_Admin/Perm Medium.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Thu, 16 Dec 2004 08:53:02 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/Perm Medium.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-27479@lists.php.net to get a copy of this message | ||
dufuz Thu Dec 16 03:53:02 2004 EDT
Modified files:
/pear/LiveUser_Admin/Perm Medium.php
Log:
update.
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Medium.php?r1=1.17&r2=1.18&ty=u
Index: pear/LiveUser_Admin/Perm/Medium.php
diff -u pear/LiveUser_Admin/Perm/Medium.php:1.17 pear/LiveUser_Admin/Perm/Medium.php:1.18
--- pear/LiveUser_Admin/Perm/Medium.php:1.17 Wed Dec 15 08:16:50 2004
+++ pear/LiveUser_Admin/Perm/Medium.php Thu Dec 16 03:53:02 2004
@@ -39,7 +39,7 @@
*
* @author Markus Wolff <wolff@21st.de>
* @author Bjoern Kraus <krausbn@php.net>
- * @version $Id: Medium.php,v 1.17 2004/12/15 13:16:50 lsmith Exp $
+ * @version $Id: Medium.php,v 1.18 2004/12/16 08:53:02 dufuz Exp $
* @package LiveUser
* @category authentication
*/
@@ -97,8 +97,7 @@
function removeGroup($filters)
{
// Remove users from the group
- $filter = array('group_id' => $filters['group_id']);
- $result = $this->_storage->delete('groupusers', $filter);
+ $result = $this->_storage->delete('groupusers', $filters);
if (!$result) {
return false;
}
@@ -129,9 +128,9 @@
// check if the group has already been granted that right
$filters = array(
- 'group_id' => $data['group_id'],
- 'right_id' => $data['right_id'],
- );
+ 'group_id' => $data['group_id'],
+ 'right_id' => $data['right_id'],
+ );
$count = $this->_storage->selectOne('grouprights', 'right_id',
$filters, true);
if ($count > 0) {
return true;