Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2015 09:06:47 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Add missing brackets to conditionals in bp-xprofile-loader.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-loader.php

    r9336 r9337  
    1515
    1616class BP_XProfile_Component extends BP_Component {
     17
    1718        /**
    1819         * Profile field types
     
    6768                );
    6869
    69                 if ( is_admin() )
     70                if ( is_admin() ) {
    7071                        $includes[] = 'admin';
     72                }
    7173
    7274                parent::includes( $includes );
     
    8587
    8688                // Define a slug, if necessary
    87                 if ( !defined( 'BP_XPROFILE_SLUG' ) )
     89                if ( !defined( 'BP_XPROFILE_SLUG' ) ) {
    8890                        define( 'BP_XPROFILE_SLUG', 'profile' );
     91                }
    8992
    9093                // Assign the base group and fullname field names to constants
     
    397400        $bp = buddypress();
    398401
    399         if ( !isset( $bp->profile->id ) )
     402        if ( ! isset( $bp->profile->id ) ) {
    400403                $bp->profile = new BP_XProfile_Component();
     404        }
    401405}
    402406add_action( 'bp_setup_components', 'bp_setup_xprofile', 2 );
Note: See TracChangeset for help on using the changeset viewer.