Skip to:
Content

BuddyPress.org

Changeset 5893


Ignore:
Timestamp:
03/08/2012 03:38:27 AM (13 years ago)
Author:
boonebgorges
Message:

In BP_Groups_Group_Members_Template::construct(), don't attempt to divide by zero when tabulating pagination. Prevents PHP divide-by-zero notices when a null value is passed as the per_page parameter into the constructor.

File:
1 edited

Legend:

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

    r5891 r5893  
    17141714            'base' => add_query_arg( 'mlpage', '%#%' ),
    17151715            'format' => '',
    1716             'total' => ceil( $this->total_member_count / $this->pag_num ),
     1716            'total' => !empty( $this->pag_num ) ? ceil( $this->total_member_count / $this->pag_num ) : $this->total_member_count,
    17171717            'current' => $this->pag_page,
    17181718            'prev_text' => '←',
Note: See TracChangeset for help on using the changeset viewer.