diff options
| author | Christian Fowler <spider@viovio.com> | 2007-09-04 02:17:27 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2007-09-04 02:17:27 +0000 |
| commit | 4eb4e9312cbb5a5d54a10d4e489f53ed8486a5b3 (patch) | |
| tree | c190a709c564d466ff866e723924ddf57ca953b5 | |
| parent | fd4364d120870487b618d1c928246953c7b83578 (diff) | |
| download | users-4eb4e9312cbb5a5d54a10d4e489f53ed8486a5b3.tar.gz users-4eb4e9312cbb5a5d54a10d4e489f53ed8486a5b3.tar.bz2 users-4eb4e9312cbb5a5d54a10d4e489f53ed8486a5b3.zip | |
delete from users_groups_map when deleting group
| -rw-r--r-- | BitPermUser.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/BitPermUser.php b/BitPermUser.php index 32705ce..97a5648 100644 --- a/BitPermUser.php +++ b/BitPermUser.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/BitPermUser.php,v 1.65 2007/07/16 15:27:21 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/BitPermUser.php,v 1.66 2007/09/04 02:17:27 spiderr 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.65 2007/07/16 15:27:21 squareing Exp $ + * $Id: BitPermUser.php,v 1.66 2007/09/04 02:17:27 spiderr 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.65 $ + * @version $Revision: 1.66 $ * @package users * @subpackage BitPermUser */ @@ -277,6 +277,8 @@ class BitPermUser extends BitUser { // we cannot remove the anonymous group function remove_group($pGroupId) { if( $pGroupId != ANONYMOUS_GROUP_ID ) { + $query = "delete from `".BIT_DB_PREFIX."users_groups_map` where `group_id` = ?"; + $result = $this->mDb->query($query, array($pGroupId)); $query = "delete from `".BIT_DB_PREFIX."users_group_permissions` where `group_id` = ?"; $result = $this->mDb->query($query, array($pGroupId)); $query = "delete from `".BIT_DB_PREFIX."users_groups` where `group_id` = ?"; |
