Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/18/2011 08:19:45 PM (13 years ago)
Author:
boonebgorges
Message:

Fixes php warning in bp_is_root_component()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-templatetags.php

    r3730 r3732  
    16541654                // If the $component parameter does not match the current_component,
    16551655                // then move along, these are not the droids you are looking for
    1656                 if ( $bp->{$id}->root_slug != $bp->current_component )
     1656                if ( empty( $bp->{$id}->root_slug ) || $bp->{$id}->root_slug != $bp->current_component )
    16571657                    continue;
    16581658
Note: See TracChangeset for help on using the changeset viewer.