Skip to:
Content

BuddyPress.org

Ticket #8604: 8604.2.patch

File 8604.2.patch, 874 bytes (added by imath, 19 months ago)
  • src/bp-activity/bp-activity-template.php

    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() { 
    15681568                                }
    15691569                        }
    15701570
    1571                         if ( 'created_group' === $activity_type || 'joined_group' === $activity_type ) {
     1571                        if ( bp_is_active( 'groups' ) && ( 'created_group' === $activity_type || 'joined_group' === $activity_type ) ) {
    15721572                                $group         = bp_get_group( $activity->item_id );
    15731573                                $current_group = groups_get_current_group();
    15741574
    15751575                                // 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 ) {
    15771577                                        return false;
    15781578                                }
    15791579