Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/11/2012 05:55:13 PM (13 years ago)
Author:
boonebgorges
Message:

Don't assign values to undefined objects throughout BP. Fixes #4191. Props leemour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-functions.php

    r5993 r6023  
    198198
    199199    // Set activity action
     200    if ( !isset( $bp->activity->actions ) || !is_object( $bp->activity->actions ) ) {
     201        $bp->activity->actions = new stdClass;
     202    }
     203
     204    if ( !isset( $bp->activity->actions->{$component_id} ) || !is_object( $bp->activity->actions->{$component_id} ) ) {
     205        $bp->activity->actions->{$component_id} = new stdClass;
     206    }
     207
    200208    $bp->activity->actions->{$component_id}->{$key} = apply_filters( 'bp_activity_set_action', array(
    201209        'key'   => $key,
Note: See TracChangeset for help on using the changeset viewer.