Changeset 7701 for trunk/bp-core/bp-core-classes.php
- Timestamp:
- 12/18/2013 12:05:32 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r7700 r7701 302 302 // the xprofile table 303 303 } else { 304 $fullname_field_id = $wpdb->get_var( $wpdb->prepare( "SELECT idFROM {$bp->profile->table_name_fields} WHERE name = %s", bp_xprofile_fullname_field_name() ) );304 $fullname_field_id = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$bp->profile->table_name_fields} WHERE name = %s", bp_xprofile_fullname_field_name() ) ); 305 305 306 306 $this->uid_name = 'user_id'; … … 314 314 // to infer spam/deleted/non-activated users. To ensure that these users 315 315 // are filtered out, we add an appropriate sub-query. 316 $sql['where'][] = "u.{$this->uid_name} IN ( SELECT idFROM {$wpdb->users} WHERE " . bp_core_get_status_sql( '' ) . " )";316 $sql['where'][] = "u.{$this->uid_name} IN ( SELECT ID FROM {$wpdb->users} WHERE " . bp_core_get_status_sql( '' ) . " )"; 317 317 318 318 break;
Note: See TracChangeset
for help on using the changeset viewer.