Skip to:
Content

BuddyPress.org

Changeset 1724


Ignore:
Timestamp:
08/28/2009 07:25:53 PM (17 years ago)
Author:
apeatling
Message:

Fixes #840

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages.php

    r1723 r1724  
    180180                        } else {
    181181                                /* Filter recipients into the format we need - array( 'username/userid', 'username/userid' ) */
    182                                 if ( empty( $_POST['send_to_usernames'] ) ) {
    183                                         if ( !empty( $_POST['send-to-input'] ) )
    184                                                 $recipients = explode( ',', $_POST['send-to-input'] );
    185                                 } else {
    186                                         $recipients = explode( ' ', $_POST['send_to_usernames'] );
    187                                 }
     182                                $autocomplete_recipients = explode( ',', $_POST['send-to-input'] );
     183                                $typed_recipients = explode( ' ', $_POST['send_to_usernames'] );
     184                                $recipients = array_merge( (array) $autocomplete_recipients, (array) $typed_recipients );
    188185                       
    189186                                /* Send the message */
Note: See TracChangeset for help on using the changeset viewer.