Skip to:
Content

BuddyPress.org

Changeset 6059


Ignore:
Timestamp:
06/02/2012 09:38:48 PM (13 years ago)
Author:
djpaul
Message:

Prevent PHP Notice when sending private messages with javascript disabled. Fixes #4225, props hnla and r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-actions.php

    r5702 r6059  
    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
Note: See TracChangeset for help on using the changeset viewer.