Skip to:
Content

BuddyPress.org

Ticket #7870: 7870.01.patch

File 7870.01.patch, 643 bytes (added by r-a-y, 8 years ago)
  • src/bp-groups/bp-groups-functions.php

     
    585585                $group = $bp->groups->current_group;
    586586
    587587        // Record this in activity streams.
    588         groups_record_activity( array(
    589                 'type'    => 'joined_group',
    590                 'item_id' => $group_id,
    591                 'user_id' => $user_id,
    592         ) );
     588        if ( bp_is_active( 'activity' ) ) {
     589                groups_record_activity( array(
     590                        'type'    => 'joined_group',
     591                        'item_id' => $group_id,
     592                        'user_id' => $user_id,
     593                ) );
     594        }
    593595
    594596        /**
    595597         * Fires after a user joins a group.