Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/21/2011 10:27:09 PM (13 years ago)
Author:
djpaul
Message:

Tune up 'for' loops. Fixes #2985, props cnorris23 and r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-functions.php

    r4605 r4770  
    245245        return false;
    246246
    247     for ( $i = 0; $i < count( $user_ids ); $i++ )
    248         $users[] = new BP_Core_User($user_ids[$i]);
     247    for ( $i = 0, $count = count( $user_ids ); $i < $count; ++$i )
     248        $users[] = new BP_Core_User( $user_ids[$i] );
    249249
    250250    return array( 'users' => $users, 'count' => BP_Friends_Friendship::search_users_count( $search_terms ) );
Note: See TracChangeset for help on using the changeset viewer.