[BUGFIX] Enable "0" as token for TypoScript split function
authorSebastiaan de Jonge <office@sebastiaandejonge.com>
Fri, 21 Oct 2011 13:21:51 +0000 (15:21 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sun, 23 Oct 2011 08:25:13 +0000 (10:25 +0200)
Change-Id: I35f997ba166e80d4d504bca02eeb10784b1a6117
Resolves: #31062
Releases: 4.6, 4.5, 4.4
Reviewed-on: http://review.typo3.org/6194
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/cms/tslib/class.tslib_content.php

index f3e7b58..0618fcd 100644 (file)
@@ -4255,7 +4255,7 @@ class tslib_cObj {
                $conf['token'] = isset($conf['token.'])
                        ? $this->stdWrap($conf['token'], $conf['token.'])
                        : $conf['token'];
-               if (!$conf['token']) {
+               if ($conf['token'] === '') {
                        return $value;
                }
                $conf['max'] = isset($conf['max.'])