summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-06-17 13:47:50 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-06-17 13:47:50 +0000
commit1aa81279be06c3c4a62864d8e3635434cd1e0d47 (patch)
tree772a552b5aad7a4338ee90eda56092b0e5c0a6b2
parentebde369e889c1638d1a441ce8332ace317ee288c (diff)
downloadusers-1aa81279be06c3c4a62864d8e3635434cd1e0d47.tar.gz
users-1aa81279be06c3c4a62864d8e3635434cd1e0d47.tar.bz2
users-1aa81279be06c3c4a62864d8e3635434cd1e0d47.zip
*** empty log message ***
-rw-r--r--BitPermUser.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/BitPermUser.php b/BitPermUser.php
index 2d78cb6..6c38746 100644
--- a/BitPermUser.php
+++ b/BitPermUser.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/BitPermUser.php,v 1.60 2007/06/17 13:27:52 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/BitPermUser.php,v 1.61 2007/06/17 13:47:50 squareing Exp $
*
* Lib for user administration, groups and permissions
* This lib uses pear so the constructor requieres
@@ -11,7 +11,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: BitPermUser.php,v 1.60 2007/06/17 13:27:52 squareing Exp $
+ * $Id: BitPermUser.php,v 1.61 2007/06/17 13:47:50 squareing Exp $
* @package users
*/
@@ -24,7 +24,7 @@ require_once( dirname( __FILE__ ).'/BitUser.php' );
* Class that holds all information for a given user
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.60 $
+ * @version $Revision: 1.61 $
* @package users
* @subpackage BitPermUser
*/
@@ -246,12 +246,10 @@ class BitPermUser extends BitUser {
$ret[$groupId]['perms'] = $this->getGroupPermissions( array( 'group_id' => $groupId ));
}
}
- $query_cant = "select count(*) from `".BIT_DB_PREFIX."users_groups` $mid";
- $cant = $this->mDb->getOne($query_cant, $bindvars);
- $retval = array();
- $retval["data"] = $ret;
- $retval["cant"] = $cant;
- return $retval;
+
+ $pListHash['cant'] = $this->mDb->getOne( "SELECT COUNT(*) FROM `".BIT_DB_PREFIX."users_groups` $mid", $bindvars );
+
+ return $ret;
}
function getAllUserGroups( $pUserId=NULL ) {