Changeset 3790 for trunk/bp-friends/bp-friends-classes.php
- Timestamp:
- 01/21/2011 11:03:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-classes.php
r3778 r3790 159 159 160 160 // filter the user_ids based on the search criteria. 161 if ( bp_is_active( ' xprofile' ) ) {161 if ( bp_is_active( 'profile' ) ) { 162 162 $sql = "SELECT DISTINCT user_id FROM {$bp->profile->table_name_data} WHERE user_id IN ($fids) AND value LIKE '$filter%%' {$pag_sql}"; 163 163 $total_sql = "SELECT COUNT(DISTINCT user_id) FROM {$bp->profile->table_name_data} WHERE user_id IN ($fids) AND value LIKE '$filter%%'"; … … 225 225 226 226 // filter the user_ids based on the search criteria. 227 if ( bp_is_active( ' xprofile' ) ) {227 if ( bp_is_active( 'profile' ) ) { 228 228 $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" ); 229 229 } else { … … 248 248 249 249 // filter the user_ids based on the search criteria. 250 if ( bp_is_active( ' xprofile' ) ) {250 if ( bp_is_active( 'profile' ) ) { 251 251 $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%%'" ); 252 252 } else { … … 265 265 global $wpdb, $bp; 266 266 267 if ( !bp_is_active( ' xprofile' ) )267 if ( !bp_is_active( 'profile' ) ) 268 268 return false; 269 269
Note: See TracChangeset
for help on using the changeset viewer.