[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:01:00 +0000 (10:01 +0200)
Change-Id: I9f5110ac9c0873a04fbc8845b126cfe477977f94
Resolves: #31062
Releases: 4.6, 4.5, 4.4
Reviewed-on: http://review.typo3.org/6171
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/cms/tslib/class.tslib_content.php

index 4f1c6e1..20fafc0 100644 (file)
@@ -4129,7 +4129,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.'])