Changeset 2020 for trunk/bp-messages.php
- Timestamp:
- 09/30/2009 06:53:29 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-messages.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages.php
r1995 r2020 440 440 441 441 /* Strip the sender from the recipient list if they exist */ 442 if ( $key = array_search( $sender_id, $recipient_ids ) ) 443 unset( $recipient_ids[$key] ); 444 442 if ( $key = array_search( $sender_id, (array)$recipient_ids ) ) 443 unset( $recipient_ids[$key] ); 444 445 /* Remove duplicates */ 446 $recipient_ids = array_unique( (array)$recipient_ids ); 447 448 if ( empty( $recipient_ids ) ) 449 return false; 450 445 451 $message->recipients = $recipient_ids; 446 452 } … … 450 456 451 457 // Send screen notifications to the recipients 452 foreach ( $message->recipients as $recipient ) {458 foreach ( (array)$message->recipients as $recipient ) { 453 459 bp_core_add_notification( $message->id, $recipient, 'messages', 'new_message' ); 454 460 }
Note: See TracChangeset
for help on using the changeset viewer.