Skip to:
Content

BuddyPress.org

Changeset 3467


Ignore:
Timestamp:
11/21/2010 10:03:50 PM (16 years ago)
Author:
boonebgorges
Message:

Fixes some WP_DEBUG errors related to the adminbar

File:
1 edited

Legend:

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

    r3438 r3467  
    7070        echo '<a id="bp-admin-' . $nav_item['css_id'] . '" href="' . $nav_item['link'] . '">' . $nav_item['name'] . '</a>';
    7171
    72         if ( is_array( $bp->bp_options_nav[$nav_item['slug']] ) ) {
     72        if ( isset( $bp->bp_options_nav[$nav_item['slug']] ) && is_array( $bp->bp_options_nav[$nav_item['slug']] ) ) {
    7373            echo '<ul>';
    7474            $sub_counter = 0;
     
    125125    echo '<ul>';
    126126
     127    $counter = 0;
    127128    if ( is_array( $blogs['blogs'] ) && (int)$blogs['count'] ) {
    128         $counter = 0;
    129129        foreach ( (array)$blogs['blogs'] as $blog ) {
    130130            $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : '';
Note: See TracChangeset for help on using the changeset viewer.