Ticket #4225: 4225.1.5-branch.01.patch
File 4225.1.5-branch.01.patch, 830 bytes (added by , 12 years ago) |
---|
-
bp-messages/bp-messages-actions.php
26 26 check_admin_referer( 'messages_send_message', 'send_message_nonce' ); 27 27 28 28 // Send the reply 29 if ( messages_new_message( array( 'thread_id' => $thread_id, 'subject' => $_POST['subject'], 'content' => $_POST['content'] ) ) )29 if ( messages_new_message( array( 'thread_id' => $thread_id, 'subject' => ! empty( $_POST['subject'] ) ? $_POST['subject'] : false, 'content' => $_POST['content'] ) ) ) 30 30 bp_core_add_message( __( 'Your reply was sent successfully', 'buddypress' ) ); 31 31 else 32 32 bp_core_add_message( __( 'There was a problem sending your reply, please try again', 'buddypress' ), 'error' );