Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/30/2011 06:53:33 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Fix undefined variable error(s) in bp_members_get_notifications_for_user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-notifications.php

    r3917 r3963  
    6161
    6262            // @deprecated format_notification_function - 1.3
    63             if ( function_exists( $bp->{$component_name}->format_notification_function ) ) {
     63            if ( isset( $bp->{$component_name}->format_notification_function ) && function_exists( $bp->{$component_name}->format_notification_function ) ) {
    6464                $renderable[] = call_user_func( $bp->{$component_name}->format_notification_function, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count );
    65             } elseif ( function_exists( $bp->{$component_name}->notification_callback ) ) {
     65            } elseif ( isset( $bp->{$component_name}->notification_callback ) && function_exists( $bp->{$component_name}->notification_callback ) ) {
    6666                $renderable[] = call_user_func( $bp->{$component_name}->notification_callback, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count );
    6767            }
Note: See TracChangeset for help on using the changeset viewer.