Skip to:
Content

BuddyPress.org

Ticket #4144: 4144.01.patch

File 4144.01.patch, 577 bytes (added by r-a-y, 12 years ago)
  • bp-core/bp-core-buddybar.php

    function bp_core_new_subnav_item( $args = '' ) { 
    234234                $link = $parent_url . $slug;
    235235
    236236                // If this sub item is the default for its parent, skip the slug
    237                 if ( $slug == $bp->bp_nav[$parent_slug]['default_subnav_slug'] ) {
     237                if ( !empty( $bp->bp_nav[$parent_slug]['default_subnav_slug'] ) && $slug == $bp->bp_nav[$parent_slug]['default_subnav_slug'] ) {
    238238                        $link = $parent_url;
    239239                }
    240240        }