Skip to content

Commit 4dbfc28

Browse files
committed
No contact names shown, when only names are allowed #1910
1 parent 526d296 commit 4dbfc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProfileFields/Entity/ProfileField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function getValue(string $columnName, string $format = '', bool $withObso
192192
$value = parent::getValue($columnName, $format);
193193
}
194194

195-
if ((is_array($value) && empty($value)) || (!is_array($value) && (strlen((string)$value) === 0 || $value === null))) {
195+
if ((is_array($value) && empty($value)) || (!is_array($value) && $value === null)) {
196196
return '';
197197
}
198198

0 commit comments

Comments
 (0)