[BUGFIX] TS: Allow "0" as strPad.padWith
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / ContentObjectRenderer.php
index 89024e3..c0f2ada 100644 (file)
@@ -2492,7 +2492,7 @@ class ContentObjectRenderer {
                        $length = isset($conf['strPad.']['length.']) ? $this->stdWrap($conf['strPad.']['length'], $conf['strPad.']['length.']) : $conf['strPad.']['length'];
                        $length = intval($length);
                }
-               if (!empty($conf['strPad.']['padWith'])) {
+               if (isset($conf['strPad.']['padWith']) && strlen($conf['strPad.']['padWith']) > 0) {
                        $padWith = isset($conf['strPad.']['padWith.']) ? $this->stdWrap($conf['strPad.']['padWith'], $conf['strPad.']['padWith.']) : $conf['strPad.']['padWith'];
                }
                if (!empty($conf['strPad.']['type'])) {