Fixed bug #8064: Split does not work with returnKey = 0
authorOliver Hader <oliver.hader@typo3.org>
Sat, 12 Apr 2008 08:22:05 +0000 (08:22 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 12 Apr 2008 08:22:05 +0000 (08:22 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3557 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index 3f3fd7d..37a7607 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-12  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #8064: Split does not work with returnKey = 0 (thanks to Dirk Weise)
+
 2008-04-11  Oliver Hader  <oliver@typo3.org>
 
        * Renamed interface.t3lib_tceformsInlineHook.php to lowercase letters
index 316e964..fcc04f6 100755 (executable)
@@ -4053,7 +4053,7 @@ class tslib_cObj {
 
                $valArr=explode($conf['token'],$value);
 
-               if (count($valArr) && ($conf['returnKey'] || $conf['returnKey.']))      {
+               if (count($valArr) && (t3lib_div::testInt($conf['returnKey']) || $conf['returnKey.']))  {
                        $key = intval($this->stdWrap($conf['returnKey'],$conf['returnKey.']));
                        $content = isset($valArr[$key]) ? $valArr[$key] : '';
                } else {