Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/06/2010 07:04:00 PM (13 years ago)
Author:
djpaul
Message:

Fixes quite a lot more WP_DEBUG warnings.

File:
1 edited

Legend:

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

    r3360 r3365  
    13081308    global $bp;
    13091309
    1310     $bp->ajax_querystring = apply_filters( 'bp_ajax_querystring', $query_string, $object );
    1311     return $bp->ajax_querystring;
     1310    if ( !isset( $bp->ajax_querystring ) )
     1311        $bp->ajax_querystring = '';
     1312
     1313    return apply_filters( 'bp_ajax_querystring', $bp->ajax_querystring, $object );
    13121314}
    13131315
     
    16501652    global $bp;
    16511653
    1652     if ( BP_XPROFILE_SLUG == $bp->current_component || $bp->core->profile->slug == $bp->current_component )
     1654    if ( defined( 'BP_XPROFILE_SLUG' ) && BP_XPROFILE_SLUG == $bp->current_component || isset( $bp->core->profile->slug ) && $bp->core->profile->slug == $bp->current_component )
    16531655        return true;
    16541656
     
    16861688    global $bp;
    16871689
    1688     if ( BP_GROUPS_SLUG == $bp->current_component && $bp->groups->current_group )
     1690    if ( BP_GROUPS_SLUG == $bp->current_component && isset( $bp->groups->current_group ) && $bp->groups->current_group )
    16891691        return true;
    16901692
Note: See TracChangeset for help on using the changeset viewer.