Changeset 2919 for trunk/bp-friends/bp-friends-classes.php
- Timestamp:
- 04/13/2010 04:01:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-classes.php
r2362 r2919 157 157 158 158 // filter the user_ids based on the search criteria. 159 if ( function_exists('xprofile_install') ) {159 if ( bp_is_active( 'xprofile' ) ) { 160 160 $sql = "SELECT DISTINCT user_id FROM {$bp->profile->table_name_data} WHERE user_id IN ($fids) AND value LIKE '$filter%%' {$pag_sql}"; 161 161 $total_sql = "SELECT COUNT(DISTINCT user_id) FROM {$bp->profile->table_name_data} WHERE user_id IN ($fids) AND value LIKE '$filter%%'"; … … 223 223 224 224 // filter the user_ids based on the search criteria. 225 if ( function_exists('xprofile_install') ) {225 if ( bp_is_active( 'xprofile' ) ) { 226 226 $sql = $wpdb->prepare( "SELECT DISTINCT d.user_id as id FROM {$bp->profile->table_name_data} d, $users_table u WHERE d.user_id = u.id AND d.value LIKE '$filter%%' ORDER BY d.value DESC $pag_sql" ); 227 227 } else { … … 246 246 247 247 // filter the user_ids based on the search criteria. 248 if ( function_exists('xprofile_install') ) {248 if ( bp_is_active( 'xprofile' ) ) { 249 249 $sql = $wpdb->prepare( "SELECT COUNT(DISTINCT d.user_id) FROM {$bp->profile->table_name_data} d, $users_table u WHERE d.user_id = u.id AND d.value LIKE '$filter%%'" ); 250 250 } else { … … 263 263 global $wpdb, $bp; 264 264 265 if ( ! function_exists( 'xprofile_install') )265 if ( !bp_is_active( 'xprofile' ) ) 266 266 return false; 267 267
Note: See TracChangeset
for help on using the changeset viewer.