Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/18/2013 12:05:32 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Use correct ID column name rather than id. Reverts testing code accidentally committed in r7700. See #5303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-classes.php

    r7700 r7701  
    302302                // the xprofile table
    303303                } else {
    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() ) );
     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() ) );
    305305
    306306                    $this->uid_name = 'user_id';
     
    314314                // to infer spam/deleted/non-activated users. To ensure that these users
    315315                // are filtered out, we add an appropriate sub-query.
    316                 $sql['where'][] = "u.{$this->uid_name} IN ( SELECT id FROM {$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( '' ) . " )";
    317317
    318318                break;
Note: See TracChangeset for help on using the changeset viewer.