diff --git a/Classes/Definition/TcaFieldDefinition.php b/Classes/Definition/TcaFieldDefinition.php index d50f118e..c4cc8783 100644 --- a/Classes/Definition/TcaFieldDefinition.php +++ b/Classes/Definition/TcaFieldDefinition.php @@ -483,7 +483,7 @@ protected static function removeBlankOptions(array $haystack, TcaFieldDefinition ) { $haystack[$key] = self::removeBlankOptions($value, $fieldDefinition, $path); } - if ((is_array($haystack[$key]) && empty($haystack[$key])) || (is_string($haystack[$key]) && $haystack[$key] === '')) { + if ((is_array($haystack[$key]) && empty($haystack[$key])) || ($haystack[$key] === '')) { unset($haystack[$key]); } array_pop($path);