diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
index 34ccbeab5..c93d3f4b9 100644
|
|
function bp_activity_has_content() { |
1568 | 1568 | } |
1569 | 1569 | } |
1570 | 1570 | |
1571 | | if ( 'created_group' === $activity_type || 'joined_group' === $activity_type ) { |
| 1571 | if ( bp_is_active( 'groups' ) && ( 'created_group' === $activity_type || 'joined_group' === $activity_type ) ) { |
1572 | 1572 | $group = bp_get_group( $activity->item_id ); |
1573 | 1573 | $current_group = groups_get_current_group(); |
1574 | 1574 | |
1575 | 1575 | // Do not use generated-content activities when displaying a group activity stream. |
1576 | | if ( (int) $group->id === (int) $current_group->id ) { |
| 1576 | if ( isset( $current_group->id ) && (int) $group->id === (int) $current_group->id ) { |
1577 | 1577 | return false; |
1578 | 1578 | } |
1579 | 1579 | |