Skip to content

Commit

Permalink
Merge pull request #727 from AyeCode/bugfix/code-warning
Browse files Browse the repository at this point in the history
Add fix for code warnings
  • Loading branch information
Stiofan authored Jan 22, 2024
2 parents 8836386 + 703f6de commit 5b2d10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public function get_field_value( $field, $user ) {
if ( $field->field_type_key != 'country' && $field->field_type_key != 'uwp_country' ) {
if ( ! empty( $value ) ) {
$data = $this->uwp_array_search( $option_values_arr, 'value', $value );
$value = $data[0]['label'];
$value = !empty( $data[0]['label'] ) ? $data[0]['label'] : '';
} else {
$value = '';
}
Expand Down

0 comments on commit 5b2d10d

Please sign in to comment.