Skip to:
Content

BuddyPress.org

Ticket #4225: 4225.trunk.01.patch

File 4225.trunk.01.patch, 859 bytes (added by r-a-y, 12 years ago)
  • bp-messages/bp-messages-actions.php

    function messages_action_view_message() { 
    3232                check_admin_referer( 'messages_send_message', 'send_message_nonce' );
    3333
    3434                // 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'] ) ) )
    3636                        bp_core_add_message( __( 'Your reply was sent successfully', 'buddypress' ) );
    3737                else
    3838                        bp_core_add_message( __( 'There was a problem sending your reply, please try again', 'buddypress' ), 'error' );