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

    r4624 r4770  
    5050
    5151    // Group notifications by component and component_action and provide totals
    52     for ( $i = 0; $i < count($notifications); $i++ ) {
     52    for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) {
    5353        $notification = $notifications[$i];
    5454        $grouped_notifications[$notification->component_name][$notification->component_action][] = $notification;
Note: See TracChangeset for help on using the changeset viewer.