[BUGFIX] EXT:form - let the CountValidator provide its arguments
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Classes / Service / TranslationService.php
index e3ff661..bf42a14 100644 (file)
@@ -158,7 +158,7 @@ class TranslationService implements SingletonInterface
             $value = $this->LOCAL_LANG['default'][$key][0]['target'];
         }
 
-        if (is_array($arguments) && $value !== null) {
+        if (is_array($arguments) && !empty($arguments) && $value !== null) {
             $value = vsprintf($value, $arguments);
         } else {
             if (empty($value)) {