- hotfix for fields without type showing in profile meta;

This commit is contained in:
Nikita Sinelnikov
2021-12-17 15:51:39 +02:00
parent c074b51c6a
commit cafabe5f12
+1 -1
View File
@@ -422,7 +422,7 @@ if ( ! class_exists( 'um\core\Profile' ) ) {
$data['in_profile_meta'] = true;
$value = um_filtered_value( $key, $data );
if ( ! $value && ! in_array( $data['type'], $fields_without_metakey ) ) {
if ( ! $value && ( ! array_key_exists( 'type', $data ) || ! in_array( $data['type'], $fields_without_metakey ) ) ) {
continue;
}