Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/06/2010 07:04:00 PM (16 years ago)
Author:
djpaul
Message:

Fixes quite a lot more WP_DEBUG warnings.

File:
1 edited

Legend:

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

    r3345 r3365  
    179179                        return false;
    180180
     181                $pag_sql = '';
    181182                if ( $per_page && $page )
    182183                        $pag_sql = $wpdb->prepare( "LIMIT %d, %d", intval( ( $page - 1 ) * $per_page ), intval( $per_page ) );
     
    337338                global $bp, $wpdb;
    338339
     340                $activity_comments = array();
     341
    339342                /* Now fetch the activity comments and parse them into the correct position in the activities array. */
    340343                foreach( (array)$activities as $activity ) {
     
    345348                /* Merge the comments with the activity items */
    346349                foreach( (array)$activities as $key => $activity )
    347                         $activities[$key]->children = $activity_comments[$activity->id];
     350                        if ( isset( $activity_comments[$activity->id] ) )
     351                                $activities[$key]->children = $activity_comments[$activity->id];
    348352
    349353                return $activities;
Note: See TracChangeset for help on using the changeset viewer.