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

Fixes: #41213
Releases: 6.0, 4.7, 4.6, 4.5

Change-Id: Ibb066611b2f419f0e7c085bb413bb3685eb4bfb4
Reviewed-on: http://review.typo3.org/14924
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_timetrack.php

index 72799ed..78305c3 100644 (file)
@@ -315,7 +315,7 @@ class t3lib_timeTrack {
                        $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();