Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/05/2010 09:37:15 PM (16 years ago)
Author:
djpaul
Message:

Fix some wp_debug warnings.

File:
1 edited

Legend:

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

    r3324 r3357  
    164164                unset( $bp_uri[$i] );
    165165
    166             $current_component = $bp_uri[$uri_offset];
     166            $current_component = isset( $bp_uri[$uri_offset] ) ? $bp_uri[$uri_offset] : '';
    167167        }
    168168    }
     
    185185
    186186    // Set the current action
    187     $current_action = $bp_uri[$i];
     187    $current_action = isset( $bp_uri[$i] ) ? $bp_uri[$i] : '';
    188188
    189189    // Unset the current_component and action from action_variables
     
    195195
    196196    // Remove the username from action variables if this is not a VHOST install
    197     if ( 'no' == VHOST && !$is_root_component )
     197    if ( defined( 'VHOST' ) && 'no' == VHOST && !$is_root_component )
    198198        array_shift($bp_uri);
    199199
Note: See TracChangeset for help on using the changeset viewer.