Changeset 167 for trunk/bp-xprofile/bp-xprofile-classes.php
- Timestamp:
- 06/19/08 17:10:30 (7 months ago)
- Files:
-
- 1 modified
-
trunk/bp-xprofile/bp-xprofile-classes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r162 r167 1077 1077 1078 1078 function get_value_byid( $field_id, $user_id = null ) { 1079 global $wpdb, $c oreuser_id, $bp_xprofile_table_name_data;1079 global $wpdb, $current_userid, $bp_xprofile_table_name_data; 1080 1080 1081 1081 if ( !$user_id ) 1082 $user_id = $c oreuser_id;1082 $user_id = $current_userid; 1083 1083 1084 1084 $sql = $wpdb->prepare("SELECT * FROM $bp_xprofile_table_name_data WHERE field_id = %d AND user_id = %d", $field_id, $user_id ); … … 1092 1092 1093 1093 function get_value_byfieldname( $fields, $user_id = null ) { 1094 global $c oreuser_id, $wpdb, $bp_xprofile_table_name_fields, $bp_xprofile_table_name_data;1094 global $current_userid, $wpdb, $bp_xprofile_table_name_fields, $bp_xprofile_table_name_data; 1095 1095 1096 1096 if ( !$fields ) … … 1098 1098 1099 1099 if ( !$user_id ) 1100 $user_id = $c oreuser_id;1100 $user_id = $current_userid; 1101 1101 1102 1102 if ( is_array($fields) ) {
