Changeset 1724
- Timestamp:
- 08/28/2009 07:25:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages.php
r1723 r1724 180 180 } else { 181 181 /* 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 ); 188 185 189 186 /* Send the message */
Note: See TracChangeset
for help on using the changeset viewer.