Skip to:
Content

BuddyPress.org

Changeset 2129


Ignore:
Timestamp:
11/25/2009 08:54:47 PM (12 years ago)
Author:
apeatling
Message:

Making sure activity comments are fetched only if a tree hierarchy already exists.

File:
1 edited

Legend:

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

    r2128 r2129  
    372372        /* Now fetch the activity comments and parse them into the correct position in the activities array. */
    373373        foreach( $activities as $activity ) {
    374             if ( 'activity_comment' != $activity->component_action )
     374            if ( 'activity_comment' != $activity->component_action && $activity->mptt_left && $activity->mptt_right )
    375375                $activity_comments[$activity->id] = BP_Activity_Activity::get_activity_comments( $activity->id, $activity->mptt_left, $activity->mptt_right );
    376376        }
Note: See TracChangeset for help on using the changeset viewer.