Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/02/2009 11:59:22 PM (16 years ago)
Author:
apeatling
Message:

Fixes #930

File:
1 edited

Legend:

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

    r1760 r1770  
    18741874        }
    18751875       
    1876         $this->pag_links = paginate_links( array(
    1877             'base' => add_query_arg( 'gpage', '%#%' ),
    1878             'format' => '',
    1879             'total' => ceil( (int) $this->total_group_count / (int) $this->pag_num ),
    1880             'current' => (int) $this->pag_page,
    1881             'prev_text' => '«',
    1882             'next_text' => '»',
    1883             'mid_size' => 1
    1884         ));     
     1876        if ( (int) $this->total_group_count && (int) $this->pag_num ) {
     1877            $this->pag_links = paginate_links( array(
     1878                'base' => add_query_arg( 'gpage', '%#%' ),
     1879                'format' => '',
     1880                'total' => ceil( (int) $this->total_group_count / (int) $this->pag_num ),
     1881                'current' => (int) $this->pag_page,
     1882                'prev_text' => '«',
     1883                'next_text' => '»',
     1884                'mid_size' => 1
     1885            ));     
     1886    }
    18851887    }
    18861888   
Note: See TracChangeset for help on using the changeset viewer.