fixed bugs for array data usage of the tree class
authorRené Fritz <r.fritz@colorcube.de>
Thu, 1 Jul 2004 15:19:46 +0000 (15:19 +0000)
committerRené Fritz <r.fritz@colorcube.de>
Thu, 1 Jul 2004 15:19:46 +0000 (15:19 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@390 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_treeview.php

index 1237004..868d35e 100755 (executable)
@@ -281,6 +281,10 @@ class t3lib_treeView {
                if($this->table) {
                        t3lib_div::loadTCA($this->table);
                }
+
+                       // setting this to false disables the use of array-trees by default
+               $this->data = false;
+               $this->dataLookup = false;
        }
 
 
@@ -324,10 +328,6 @@ class t3lib_treeView {
                $this->recs = array();
                $this->ids = array();
                $this->ids_hierarchy = array();
-
-                       // setting this to false disables the use of array-trees by default
-               $this->data = false;
-               $this->dataLookup = false;
        }
 
 
@@ -995,12 +995,8 @@ class t3lib_treeView {
 
                        if (is_array($val[$this->subLevelID])) {
                                $this->setDataFromArray($dataArr[$uid][$this->subLevelID],TRUE,$uid);
-                               unset($dataArr[$uid][$this->subLevelID]);
                        }
                }
-               if (!$traverse) {
-                       $this->data = &$dataArr;
-               }
        }
 
        /**