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-members/bp-members-buddybar.php

    r4761 r4770  
    2121    if ( $notifications ) {
    2222        $counter = 0;
    23         for ( $i = 0; $i < count($notifications); $i++ ) {
     23        for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) {
    2424            $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
    2525
Note: See TracChangeset for help on using the changeset viewer.