Changeset 3371 for trunk/bp-core/bp-core-classes.php
- Timestamp:
- 11/07/2010 11:17:17 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-classes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r3369 r3371 125 125 $sql['from'] = "FROM " . CUSTOM_USER_TABLE . " u LEFT JOIN " . CUSTOM_USER_META_TABLE . " um ON um.user_id = u.ID"; 126 126 127 if ( $search_terms && function_exists( 'xprofile_install' ) || 'alphabetical' == $type )127 if ( $search_terms && bp_is_active( 'xprofile' ) || 'alphabetical' == $type ) 128 128 $sql['join_profiledata'] = "LEFT JOIN {$bp->profile->table_name_data} pd ON u.ID = pd.user_id"; 129 129 … … 155 155 } 156 156 157 else if ( $user_id && function_exists( 'friends_install' ) ) {157 else if ( $user_id && bp_is_active( 'friends' ) ) { 158 158 $friend_ids = friends_get_friend_user_ids( $user_id ); 159 159 $friend_ids = $wpdb->escape( implode( ',', (array)$friend_ids ) );
Note: See TracChangeset
for help on using the changeset viewer.