Changeset 7489
- Timestamp:
- 11/01/2013 03:14:27 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-classes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r7420 r7489 189 189 190 190 // Remove data-less fields, if necessary 191 if ( !empty( $hide_empty_fields ) ) {191 if ( !empty( $hide_empty_fields ) && ! empty( $field_ids ) && ! empty( $field_data ) ) { 192 192 193 193 // Loop through the results and find the fields that have data. … … 211 211 // Reset indexes 212 212 $fields = array_values( $fields ); 213 214 213 } 215 214 216 215 // Field data was found 217 if ( ! empty( $field_data ) && !is_wp_error( $field_data ) ) {216 if ( ! empty( $fields ) && !empty( $field_data ) && !is_wp_error( $field_data ) ) { 218 217 219 218 // Loop through fields … … 225 224 // Assign correct data value to the field 226 225 if ( $field->id == $data->field_id ) { 227 $fields[$field_key]->data = new stdClass;226 $fields[$field_key]->data = new stdClass; 228 227 $fields[$field_key]->data->value = $data->value; 229 $fields[$field_key]->data->id = $data->id;228 $fields[$field_key]->data->id = $data->id; 230 229 } 231 230 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)