Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/12/2011 09:25:51 PM (15 years ago)
Author:
djpaul
Message:

Swap function_exists checks to bp_is_active. Fixes #2718

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-functions.php

    r3955 r4137  
    256256     * joining/leaving the group in quick succession.
    257257     */
    258     if ( function_exists( 'bp_activity_delete' ) && gmmktime() <= strtotime( '+5 minutes', (int)strtotime( $membership->date_modified ) ) )
     258    if ( bp_is_active( 'activity' ) && gmmktime() <= strtotime( '+5 minutes', (int)strtotime( $membership->date_modified ) ) )
    259259        bp_activity_delete( array( 'component' => $bp->groups->id, 'type' => 'joined_group', 'user_id' => $user_id, 'item_id' => $group_id ) );
    260260
Note: See TracChangeset for help on using the changeset viewer.