From d02a8a4f7f23bd63b8d541e3f4290b72c4e15ec0 Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 20 Sep 2006 21:05:03 +0000 Subject: Ein kleiner Fix f?r verschachtelte Menues. --- code/nav.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/nav.inc.php b/code/nav.inc.php index d5ede02..02d9127 100644 --- a/code/nav.inc.php +++ b/code/nav.inc.php @@ -13,9 +13,9 @@ $res->MoveNext(); } - foreach($this->entries as $entry) + foreach($this->entries as $key => $entry) if($entry->parent != 0) - $this->entries[$entry->parent]->Add($entry); + $this->entries[$entry->parent]->Add(&$this->entries[$key]); } function ParseEntries() { @@ -67,7 +67,7 @@ } function Add($entry) { - array_push($this->children, $entry); + array_push($this->children, &$entry); } function Parse() { -- cgit v1.2.3