Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/21/2008 10:50:45 PM (16 years ago)
Author:
apeatling
Message:

Fixed problem with no groups showing in group admin screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-templatetags.php

    r554 r570  
    2222        if ( !$user_id )
    2323            $user_id = $current_user->id;
    24 
     24       
    2525        $this->pag_page = isset( $_REQUEST['fpage'] ) ? intval( $_REQUEST['fpage'] ) : 1;
    2626        $this->pag_num = isset( $_REQUEST['num'] ) ? intval( $_REQUEST['num'] ) : $groups_per_page;
    2727       
    28         if ( ( $bp['current_action'] == 'my-groups' && $_REQUEST['group-filter-box'] == '' ) || ( !$bp['current_action'] && $_REQUEST['group-filter-box'] == '' ) ) {
     28        if ( ( $bp['current_action'] == 'my-groups' && $_REQUEST['group-filter-box'] == '' ) || ( !$bp['current_action'] && !isset($_REQUEST['page']) && $_REQUEST['group-filter-box'] == '' ) ) {
    2929           
    3030            $this->groups = groups_get_user_groups( $this->pag_num, $this->pag_page );
     
    3333            $this->group_count = count($this->groups);
    3434       
    35         } else if ( ( $bp['current_action'] == 'my-groups' && $_REQUEST['group-filter-box'] != '' ) || ( !$bp['current_action'] && $_REQUEST['group-filter-box'] != '' ) ) {
     35        } else if ( ( $bp['current_action'] == 'my-groups' && $_REQUEST['group-filter-box'] != '' ) || ( !$bp['current_action'] && !isset($_REQUEST['page']) && $_REQUEST['group-filter-box'] != '' ) ) {
    3636
    3737            $this->groups = groups_filter_user_groups( $_REQUEST['group-filter-box'], $this->pag_num, $this->pag_page );
     
    7676       
    7777        }
    78 
     78       
    7979        $this->pag_links = paginate_links( array(
    8080            'base' => add_query_arg( array( 'fpage' => '%#%', 'num' => $this->pag_num, 's' => $_REQUEST['s'], 'sortby' => $this->sort_by, 'order' => $this->order ) ),
Note: See TracChangeset for help on using the changeset viewer.