Skip to:
Content

BuddyPress.org

Changeset 3369 for trunk/bp-xprofile.php


Ignore:
Timestamp:
11/07/2010 12:20:02 AM (14 years ago)
Author:
djpaul
Message:

Fixes even more WP_DEBUG warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r3365 r3369  
    175175    global $bp;
    176176
    177     do_action( 'xprofile_screen_display_profile', $_GET['new'] );
     177    $new = '';
     178    if ( isset( $_GET['new'] ) )
     179        $new = $_GET['new'];
     180
     181    do_action( 'xprofile_screen_display_profile', $new );
    178182    bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'members/single/home' ) );
    179183}
     
    345349    global $bp;
    346350
    347     if ( $bp->profile->slug != $bp->current_component || 'change-avatar' != $bp->current_action || 'delete-avatar' != $bp->action_variables[0] )
     351    if ( $bp->profile->slug != $bp->current_component || 'change-avatar' != $bp->current_action || !isset( $bp->action_variables[0] ) || 'delete-avatar' != $bp->action_variables[0] )
    348352        return false;
    349353
Note: See TracChangeset for help on using the changeset viewer.