[BUGFIX] Wrong usage of intExplode in getTreeList 89/27089/9
authorStefan Froemken <froemken@gmail.com>
Tue, 28 Jan 2014 10:44:46 +0000 (11:44 +0100)
committerBenjamin Mack <benni@typo3.org>
Tue, 25 Feb 2014 22:21:16 +0000 (23:21 +0100)
getTreeList calls intExplode which converts empty
arrays to 0. This patch removes empty arrays
within intExplode.

Resolves: #55384
Releases: 6.2
Change-Id: Id4ca1a15edf2cc2617d85bda765461c4cb1f105c
Reviewed-on: https://review.typo3.org/27089
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

index 36be4ab..a99ab0e 100644 (file)
@@ -7376,8 +7376,10 @@ class ContentObjectRenderer {
                                                                $theList = array_merge(
                                                                        GeneralUtility::intExplode(
                                                                                ',',
-                                                                               $this->getTreeList($next_id, $depth - 1, $begin - 1, $dontCheckEnableFields,
-                                                                                       $addSelectFields, $moreWhereClauses, $prevId_array, $recursionLevel + 1)
+                                                                               $this->getTreeList($next_id, $depth - 1, $begin - 1,
+                                                                                       $dontCheckEnableFields, $addSelectFields, $moreWhereClauses,
+                                                                                       $prevId_array, $recursionLevel + 1),
+                                                                               TRUE
                                                                        ),
                                                                        $theList
                                                                );