Fix variable scope.
authorJan Schneider <jan@horde.org>
Mon, 2 Feb 2009 11:37:45 +0000 (12:37 +0100)
committerJan Schneider <jan@horde.org>
Mon, 2 Feb 2009 11:37:45 +0000 (12:37 +0100)
chora/lib/Block/tree_menu.php

index f2cc9e7..8ef543e 100644 (file)
@@ -15,7 +15,7 @@ class Horde_Block_chora_tree_menu extends Horde_Block
         $arr = array();
         asort($GLOBALS['sourceroots']);
 
-        foreach ($sourceroots as $key => $val) {
+        foreach ($GLOBALS['sourceroots'] as $key => $val) {
             if (Chora::checkPerms($key)) {
                 $tree->addNode($parent . $key,
                     $parent,