Skip to:
Content

BuddyPress.org

Ticket #2203: bp-messages-classes.patch

File bp-messages-classes.patch, 853 bytes (added by rnaegle, 12 years ago)
  • .php

    old new Class BP_Messages_Message { 
    288288                }
    289289
    290290                // First insert the message into the messages table
    291                 if ( !$wpdb->query( $wpdb->prepare( "INSERT INTO {$bp->messages->table_name_messages} ( thread_id, sender_id, subject, message, date_sent ) VALUES ( %d, %d, %s, %s, FROM_UNIXTIME(%d) )", $this->thread_id, $this->sender_id, $this->subject, $this->message, $this->date_sent ) ) )
     291                if ( !$wpdb->query( $wpdb->prepare( "INSERT INTO {$bp->messages->table_name_messages} ( thread_id, sender_id, subject, message, date_sent ) VALUES ( %d, %d, %s, %s, %s )", $this->thread_id, $this->sender_id, $this->subject, $this->message, gmdate( DATE_ATOM, $this->date_sent ) ) ) )
    292292                        return false;
    293293
    294294                if ( $new_thread ) {