Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/02/2011 04:31:51 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Added failsafes on the members component when other optional core components are deactivated.

File:
1 edited

Legend:

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

    r3991 r3993  
    114114
    115115                /** Profiles Fallback *************************************************/
    116                 if ( !bp_is_active( 'xprofile' ) )
     116                if ( !bp_is_active( 'xprofile' ) ) {
    117117                        $bp->profile->slug = 'profile';
     118                        $bp->profile->id   = 'profile';
     119                }
    118120
    119121                /** Default Profile Component *****************************************/
    120122                if ( !defined( 'BP_DEFAULT_COMPONENT' ) ) {
    121                         if ( isset( $bp->pages->activity ) )
     123                        if ( isset( $bp->pages->activity ) && isset( $bp->activity->id ) )
    122124                                $bp->default_component = $bp->activity->id;
    123125                        else
Note: See TracChangeset for help on using the changeset viewer.