Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/05/2011 08:50:48 PM (15 years ago)
Author:
boonebgorges
Message:

Fixes BP_Core_User::get_users() so that a numeral value default value is passed as the limit param. Fixes #1991

File:
1 edited

Legend:

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

    r4211 r4330  
    146146        function __construct( $type, $page_number, $per_page, $max, $user_id, $search_terms, $include, $populate_extras, $exclude ) {
    147147                global $bp;
    148 
     148               
    149149                $this->pag_page  = !empty( $_REQUEST['upage'] ) ? intval( $_REQUEST['upage'] ) : (int)$page_number;
    150150                $this->pag_num   = !empty( $_REQUEST['num'] )   ? intval( $_REQUEST['num'] )   : (int)$per_page;
    151151                $this->type      = $type;
    152 
    153                 if ( !$this->pag_num )
    154                         $this->pag_num = 1;
    155152
    156153                if ( isset( $_REQUEST['letter'] ) && '' != $_REQUEST['letter'] )
Note: See TracChangeset for help on using the changeset viewer.