Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/30/2012 11:19:30 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Messages:

  • Do not attempt to notify users that cannot be found.
  • Could happen if user has been deleted.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-notifications.php

    r6342 r6541  
    3232            // User data and links
    3333            $ud            = get_userdata( $recipient->user_id );
     34
     35            // Bail if user cannot be found
     36            if ( empty( $ud ) )
     37                continue;
     38
    3439            $message_link  = bp_core_get_user_domain( $recipient->user_id ) . bp_get_messages_slug() .'/';
    3540            $settings_slug = function_exists( 'bp_get_settings_slug' ) ? bp_get_settings_slug() : 'settings';
Note: See TracChangeset for help on using the changeset viewer.