Ticket #5811: 5811.01.patch
File 5811.01.patch, 764 bytes (added by , 11 years ago) |
---|
-
src/bp-templates/bp-legacy/buddypress-functions.php
793 793 // determine depth 794 794 $depth = 1; 795 795 $parent_id = $activities_template->activities[0]->secondary_item_id; 796 while ( $parent_id !== $activities_template->activities[0]->item_id ) {796 while ( $parent_id !== (int) $activities_template->activities[0]->item_id ) { 797 797 $depth++; 798 798 $p_obj = new BP_Activity_Activity( $parent_id ); 799 $parent_id = $p_obj->secondary_item_id;799 $parent_id = (int) $p_obj->secondary_item_id; 800 800 } 801 801 $activities_template->activity->current_comment->depth = $depth; 802 802 }