Skip to:
Content

BuddyPress.org

Changeset 1737


Ignore:
Timestamp:
08/31/2009 01:03:39 AM (17 years ago)
Author:
apeatling
Message:

Fixes #957 props Jason_JM

File:
1 edited

Legend:

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

    r1732 r1737  
    927927                }
    928928               
    929                 $this->pag_links = paginate_links( array(
    930                         'base' => add_query_arg( 'upage', '%#%' ),
    931                         'format' => '',
    932                         'total' => ceil( (int) $this->total_member_count / (int) $this->pag_num ),
    933                         'current' => (int) $this->pag_page,
    934                         'prev_text' => '«',
    935                         'next_text' => '»',
    936                         'mid_size' => 1
    937                 ));             
     929                if ( (int) $this->total_member_count && (int) $this->pag_num ) {
     930                        $this->pag_links = paginate_links( array(
     931                                'base' => add_query_arg( 'upage', '%#%' ),
     932                                'format' => '',
     933                                'total' => ceil( (int) $this->total_member_count / (int) $this->pag_num ),
     934                                'current' => (int) $this->pag_page,
     935                                'prev_text' => '«',
     936                                'next_text' => '»',
     937                                'mid_size' => 1
     938                        ));             
     939                }
    938940        }
    939941       
Note: See TracChangeset for help on using the changeset viewer.