Skip to:
Content

BuddyPress.org

Ticket #3733: 3733.mark-favorite.diff

File 3733.mark-favorite.diff, 695 bytes (added by filosofo, 13 years ago)
  • bp-activity/bp-activity-actions.php

     
    366366function bp_activity_action_mark_favorite() {
    367367        global $bp;
    368368
    369         if ( !is_user_logged_in() || ( bp_is_activity_component() ) || !bp_is_current_action( 'favorite' ) )
     369        if ( ! is_user_logged_in() || ! bp_is_activity_component() || ! bp_is_current_action( 'favorite' ) )
    370370                return false;
    371371
    372372        // Check the nonce
     
    609609        // Instantiate Akismet for BuddyPress
    610610        $bp->activity->akismet = new BP_Akismet();
    611611}
    612 ?>
    613  No newline at end of file
     612?>