From 01b8a3701bb658880f40868fa5c3231434b52767 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Sat, 11 Feb 2006 12:28:18 +0000 Subject: Strip in-line group_id - still need serviceSql adding (missed some) --- Pigeonholes.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index 5ac563d..63d2a2a 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.44 $ + * @version $Revision: 1.45 $ * @package pigeonholes */ @@ -184,12 +184,6 @@ class Pigeonholes extends LibertyAttachable { $bindVars[] = $pListHash['content_type']; } - if( !$gBitSystem->isPackageActive( 'gatekeeper' ) ) { - $groups = array_keys($gBitUser->mGroups); - $where .= ( empty( $where ) ? " WHERE " : " AND " )." lc.`group_id` IN ( ".implode( ',',array_fill ( 0, count( $groups ),'?' ) )." )"; - $bindVars = array_merge( $bindVars, $groups ); - } - if( !empty( $pListHash['sort_mode'] ) ) { $where .= " ORDER BY ".$this->mDb->convert_sortmode( $pListHash['sort_mode'] )." "; } else { @@ -349,11 +343,6 @@ class Pigeonholes extends LibertyAttachable { $where .= " UPPER( lc.`title` ) LIKE ? "; $bindVars[] = '%'.strtoupper( $pListHash['find'] ).'%'; } - if( !$gBitSystem->isPackageActive( 'gatekeeper' ) ) { - $groups = array_keys($gBitUser->mGroups); - $where .= ( empty( $where ) ? " WHERE " : " AND " )." lc.`group_id` IN ( ".implode( ',',array_fill ( 0, count( $groups ),'?' ) )." )"; - $bindVars = array_merge( $bindVars, $groups ); - } if( !empty( $pListHash['sort_mode'] ) ) { $order .= " ORDER BY ".$this->mDb->convert_sortmode( $pListHash['sort_mode'] )." "; -- cgit v1.3