Skip to:
Content

BuddyPress.org

Ticket #5273: 5273.patch

File 5273.patch, 813 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 6490935..f48deb5 100644
    if ( !defined( 'ABSPATH' ) ) exit; 
    1616 * Email message recipients to alert them of a new unread private message
    1717 *
    1818 * @since BuddyPress (1.0)
    19  * @param array $args
     19 * @param array $raw_args
    2020 */
    21 function messages_notification_new_message( $args = array() ) {
     21function messages_notification_new_message( $raw_args = array() ) {
    2222
    2323        // Cast possible $message object as an array
    24         if ( is_object( $args ) ) {
    25                 $args = (array) $args;
     24        if ( is_object( $raw_args ) ) {
     25                $args = (array) $raw_args;
     26        } else {
     27                $args = $raw_args;
    2628        }
    2729
    2830        // These should be extracted below