Skip to:
Content

BuddyPress.org

Ticket #4225: 4225.1.5-branch.01.patch

File 4225.1.5-branch.01.patch, 830 bytes (added by r-a-y, 12 years ago)
  • bp-messages/bp-messages-actions.php

     
    2626                check_admin_referer( 'messages_send_message', 'send_message_nonce' );
    2727
    2828                // 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'] ) ) )
    3030                        bp_core_add_message( __( 'Your reply was sent successfully', 'buddypress' ) );
    3131                else
    3232                        bp_core_add_message( __( 'There was a problem sending your reply, please try again', 'buddypress' ), 'error' );