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-activity/bp-activity-classes.php

    r4619 r4770  
    446446        $activities = bp_activity_get_sitewide( array( 'max' => $limit ) );
    447447
    448         for ( $i = 0; $i < count($activities); $i++ ) {
     448        for ( $i = 0, $count = count( $activities ); $i < $count; ++$i ) {
    449449                $title = explode( '<span', $activities[$i]['content'] );
    450450
Note: See TracChangeset for help on using the changeset viewer.