[!!!][BUGFIX] Separate sys_history from sys_log db entries
[Packages/TYPO3.CMS.git] / typo3 / sysext / belog / Classes / ViewHelpers / FormatDetailsViewHelper.php
index 610439c..2b7787b 100644 (file)
@@ -62,7 +62,9 @@ class FormatDetailsViewHelper extends AbstractViewHelper
             $substitutes = self::stripPathFromFilenames($substitutes);
         }
         // Substitute
-        $detailString = vsprintf($detailString, $substitutes);
+        if (!empty($substitutes)) {
+            $detailString = vsprintf($detailString, $substitutes);
+        }
         // Remove possible pending other %s
         $detailString = str_replace('%s', '', $detailString);
         return $detailString;