Skip to:
Content

Changeset 2921


Ignore:
Timestamp:
04/13/10 20:54:50 (4 years ago)
Author:
apeatling
Message:

Fixes bug where new friendship notifications would not clear.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-friends.php

    r2817 r2921  
    634634    global $bp; 
    635635 
    636     if ( isset($_GET['new']) ) 
    637         bp_core_delete_notifications_for_user_by_type( $bp->displayed_user->id, $bp->friends->id, 'friendship_accepted' ); 
     636    if ( isset( $_GET['new'] ) ) 
     637        bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->friends->id, 'friendship_accepted' ); 
    638638} 
    639639add_action( 'bp_activity_screen_my_activity', 'friends_clear_friend_notifications' ); 
Note: See TracChangeset for help on using the changeset viewer.