Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 09:32:04 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Breathing room for cast variables.

File:
1 edited

Legend:

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

    r5727 r5729  
    181181            $this->members = bp_core_get_users( array( 'type' => $this->type, 'per_page' => $this->pag_num, 'page' => $this->pag_page, 'user_id' => $user_id, 'include' => $include, 'search_terms' => $search_terms, 'populate_extras' => $populate_extras, 'exclude' => $exclude, 'meta_key' => $meta_key, 'meta_value' => $meta_value ) );
    182182
    183         if ( !$max || $max >= (int)$this->members['total'] )
    184             $this->total_member_count = (int)$this->members['total'];
     183        if ( !$max || $max >= (int) $this->members['total'] )
     184            $this->total_member_count = (int) $this->members['total'];
    185185        else
    186             $this->total_member_count = (int)$max;
     186            $this->total_member_count = (int) $max;
    187187
    188188        $this->members = $this->members['users'];
     
    192192                $this->member_count = count( $this->members );
    193193            } else {
    194                 $this->member_count = (int)$max;
     194                $this->member_count = (int) $max;
    195195            }
    196196        } else {
     
    198198        }
    199199
    200         if ( (int)$this->total_member_count && (int)$this->pag_num ) {
     200        if ( (int) $this->total_member_count && (int) $this->pag_num ) {
    201201            $this->pag_links = paginate_links( array(
    202202                'base'      => add_query_arg( 'upage', '%#%' ),
    203203                'format'    => '',
    204                 'total'     => ceil( (int)$this->total_member_count / (int)$this->pag_num ),
     204                'total'     => ceil( (int) $this->total_member_count / (int) $this->pag_num ),
    205205                'current'   => (int) $this->pag_page,
    206206                'prev_text' => _x( '←', 'Member pagination previous text', 'buddypress' ),
     
    746746    global $bp;
    747747
    748     foreach ( (array)$bp->bp_nav as $user_nav_item ) {
     748    foreach ( (array) $bp->bp_nav as $user_nav_item ) {
    749749        if ( !$user_nav_item['show_for_displayed_user'] && !bp_is_my_profile() )
    750750            continue;
Note: See TracChangeset for help on using the changeset viewer.