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-template.php

    r4675 r4770  
    9393            <ul class="horiz-gallery">
    9494
    95             <?php for ( $i = 0; $i < count( $friend_ids ); $i++ ) { ?>
     95            <?php for ( $i = 0, $count = count( $friend_ids ); $i < $count; ++$i ) { ?>
    9696
    9797                <li>
     
    139139        <ul class="item-list" id="random-members-list">
    140140
    141         <?php for ( $i = 0; $i < count( $user_ids['users'] ); $i++ ) { ?>
     141        <?php for ( $i = 0, $count = count( $user_ids['users'] ); $i < $count; ++$i ) { ?>
    142142
    143143            <li>
Note: See TracChangeset for help on using the changeset viewer.