Changeset 3365 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 11/06/2010 07:04:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r3345 r3365 179 179 return false; 180 180 181 $pag_sql = ''; 181 182 if ( $per_page && $page ) 182 183 $pag_sql = $wpdb->prepare( "LIMIT %d, %d", intval( ( $page - 1 ) * $per_page ), intval( $per_page ) ); … … 337 338 global $bp, $wpdb; 338 339 340 $activity_comments = array(); 341 339 342 /* Now fetch the activity comments and parse them into the correct position in the activities array. */ 340 343 foreach( (array)$activities as $activity ) { … … 345 348 /* Merge the comments with the activity items */ 346 349 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]; 348 352 349 353 return $activities;
Note: See TracChangeset
for help on using the changeset viewer.