Skip to:
Content

BuddyPress.org


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

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.