diff --git bp-activity/bp-activity-classes.php bp-activity/bp-activity-classes.php
index bf7bfe0..bfdcd8e 100644
|
|
class BP_Activity_Activity { |
1013 | 1013 | $parent_id = $r->secondary_item_id; |
1014 | 1014 | while ( $parent_id !== $r->item_id ) { |
1015 | 1015 | $depth++; |
1016 | | $parent_id = $ref[ $parent_id ]->secondary_item_id; |
| 1016 | |
| 1017 | if ( empty( $ref[ $parent_id ] ) ) { |
| 1018 | $parent_id = $r->item_id; |
| 1019 | } else { |
| 1020 | $parent_id = $ref[ $parent_id ]->secondary_item_id; |
| 1021 | } |
1017 | 1022 | } |
1018 | 1023 | $r->depth = $depth; |
1019 | 1024 | } |