Skip to:
Content

BuddyPress.org

Changeset 6152


Ignore:
Timestamp:
06/29/2012 09:58:30 PM (12 years ago)
Author:
boonebgorges
Message:

Check that an array key is set before accessing in bp_get_loggedin_user_nav()

Fixes #4302

Props rbahumi

File:
1 edited

Legend:

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

    r6124 r6152  
    704704
    705705        // If the current component matches the nav item id, then add a highlight CSS class.
    706         if ( !bp_is_directory() && $bp->active_components[bp_current_component()] == $nav_item['css_id'] ) {
     706        if ( !bp_is_directory() && !empty( $bp->active_components[bp_current_component()] ) && $bp->active_components[bp_current_component()] == $nav_item['css_id'] ) {
    707707            $selected = ' class="current selected"';
    708708        }
Note: See TracChangeset for help on using the changeset viewer.