Skip to:
Content

BuddyPress.org

Ticket #5273: 5273.02.patch

File 5273.02.patch, 669 bytes (added by boonebgorges, 12 years ago)
  • bp-messages/bp-messages-notifications.php

    diff --git bp-messages/bp-messages-notifications.php bp-messages/bp-messages-notifications.php
    index f48deb5..661ce44 100644
    function messages_format_notifications( $action, $item_id, $secondary_item_id, $ 
    150150 * @param obj $message
    151151 */
    152152function bp_messages_message_sent_add_notification( $message ) {
     153        if ( is_array( $message ) ) {
     154                $message = (object) $message;
     155        }
     156
    153157        if ( bp_is_active( 'notifications' ) && ! empty( $message->recipients ) ) {
    154158                foreach ( (array) $message->recipients as $recipient ) {
    155159                        bp_notifications_add_notification( array(