Ticket #4225: 4225.trunk.01.patch
File 4225.trunk.01.patch, 859 bytes (added by , 12 years ago) |
---|
-
bp-messages/bp-messages-actions.php
function messages_action_view_message() { 32 32 check_admin_referer( 'messages_send_message', 'send_message_nonce' ); 33 33 34 34 // Send the reply 35 if ( messages_new_message( array( 'thread_id' => $thread_id, 'subject' => $_POST['subject'], 'content' => $_POST['content'] ) ) )35 if ( messages_new_message( array( 'thread_id' => $thread_id, 'subject' => ! empty( $_POST['subject'] ) ? $_POST['subject'] : false, 'content' => $_POST['content'] ) ) ) 36 36 bp_core_add_message( __( 'Your reply was sent successfully', 'buddypress' ) ); 37 37 else 38 38 bp_core_add_message( __( 'There was a problem sending your reply, please try again', 'buddypress' ), 'error' );