Skip to:
Content

BuddyPress.org

Ticket #5811: 5811.01.patch

File 5811.01.patch, 764 bytes (added by r-a-y, 10 years ago)
  • src/bp-templates/bp-legacy/buddypress-functions.php

     
    793793                // determine depth
    794794                $depth = 1;
    795795                $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 ) {
    797797                        $depth++;
    798798                        $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;
    800800                }
    801801                $activities_template->activity->current_comment->depth = $depth;
    802802        }