[BUGFIX] Tree view in admin panel is broken with PHP 5.4
authorPhilipp Gampe <philipp.gampe@typo3.org>
Fri, 21 Sep 2012 20:28:02 +0000 (22:28 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Sat, 22 Sep 2012 15:59:25 +0000 (17:59 +0200)
The double ['0.'] in $arr['0.']['0.'] is wrong.
Fun fact: This is "broken" since the initial commit.

Change-Id: If8e9e0f5847151b988aa1e4bea47aeafcd0b65bd
Fixes: #41213
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/14880
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
typo3/sysext/core/Classes/TimeTracker/TimeTracker.php

index 8894666..8c08596 100644 (file)
@@ -301,7 +301,7 @@ class TimeTracker {
                        $this->createHierarchyArray($arr, $data['level'], $uniqueId);
                }
                // Parsing the registeret content and create icon-html for the tree
-               $this->tsStackLog[$arr['0.'][0]]['content'] = $this->fixContent($arr['0.']['0.'], $this->tsStackLog[$arr['0.'][0]]['content'], '', 0, $arr['0.'][0]);
+               $this->tsStackLog[$arr['0.'][0]]['content'] = $this->fixContent($arr['0.'], $this->tsStackLog[$arr['0.'][0]]['content'], '', 0, $arr['0.'][0]);
                // Displaying the tree:
                $outputArr = array();
                $outputArr[] = $this->fw('TypoScript Key');