Skip to:
Content

BuddyPress.org

Changeset 6278


Ignore:
Timestamp:
08/30/2012 07:52:58 PM (13 years ago)
Author:
boonebgorges
Message:

Avoid PHP 5.4 strict errors when xprofile component is disabled

Location:
trunk
Files:
2 edited

Legend:

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

    r6096 r6278  
    204204
    205205            // Fallback values if xprofile is disabled
     206            if ( ! isset( $bp->core->profile ) ) {
     207                $bp->core->profile = new stdClass;
     208            }
    206209            $bp->core->profile->slug = 'profile';
    207210            $bp->active_components[$bp->core->profile->slug] = $bp->core->profile->slug;
  • trunk/bp-members/bp-members-loader.php

    r6093 r6278  
    9999
    100100        if ( !bp_is_active( 'xprofile' ) ) {
     101            $bp->profile       = new stdClass;
    101102            $bp->profile->slug = 'profile';
    102103            $bp->profile->id   = 'profile';
Note: See TracChangeset for help on using the changeset viewer.