Skip to:
Content

BuddyPress.org

Changeset 8003


Ignore:
Timestamp:
02/28/2014 01:49:09 PM (11 years ago)
Author:
boonebgorges
Message:

Bracket normalization in BP_Activity_Activity::append_comments()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r7997 r8003  
    858858
    859859        // Now fetch the activity comments and parse them into the correct position in the activities array.
    860         foreach( (array) $activities as $activity ) {
     860        foreach ( (array) $activities as $activity ) {
    861861            $top_level_parent_id = 'activity_comment' == $activity->type ? $activity->item_id : 0;
    862862            $activity_comments[$activity->id] = BP_Activity_Activity::get_activity_comments( $activity->id, $activity->mptt_left, $activity->mptt_right, $spam, $top_level_parent_id );
     
    864864
    865865        // Merge the comments with the activity items
    866         foreach( (array) $activities as $key => $activity )
    867             if ( isset( $activity_comments[$activity->id] ) )
     866        foreach ( (array) $activities as $key => $activity ) {
     867            if ( isset( $activity_comments[$activity->id] ) ) {
    868868                $activities[$key]->children = $activity_comments[$activity->id];
     869            }
     870        }
    869871
    870872        return $activities;
Note: See TracChangeset for help on using the changeset viewer.