Skip to:
Content

BuddyPress.org

Changeset 6002


Ignore:
Timestamp:
04/21/2012 04:43:36 PM (12 years ago)
Author:
djpaul
Message:

Protect against php notice in buddybar. Fixes #4144, props r-a-y

File:
1 edited

Legend:

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

    r5990 r6002  
    231231
    232232        // If this sub item is the default for its parent, skip the slug
    233         if ( $slug == $bp->bp_nav[$parent_slug]['default_subnav_slug'] ) {
     233        if ( ! empty( $bp->bp_nav[$parent_slug]['default_subnav_slug'] ) && $slug == $bp->bp_nav[$parent_slug]['default_subnav_slug'] ) {
    234234            $link = $parent_url;
    235235        }
Note: See TracChangeset for help on using the changeset viewer.