Changeset 7117 for trunk/bp-xprofile/bp-xprofile-classes.php
- Timestamp:
- 05/28/2013 02:53:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r7030 r7117 454 454 global $wpdb, $userdata, $bp; 455 455 456 // @todo Why are we nooping the user_id ? 457 $user_id = 0; 458 if ( is_null( $user_id ) ) 456 if ( empty( $user_id ) ) { 459 457 $user_id = $userdata->ID; 458 } 460 459 461 460 $sql = $wpdb->prepare( "SELECT * FROM {$bp->profile->table_name_fields} WHERE id = %d", $id );
Note: See TracChangeset
for help on using the changeset viewer.