Changeset 12567
- Timestamp:
- 02/20/08 14:15:26 (11 months ago)
- Files:
-
- 1 modified
-
util/branches/dev/jsdoc/jsdoc.module (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/branches/dev/jsdoc/jsdoc.module
r12566 r12567 3000 3000 } 3001 3001 3002 function _jsdoc_get_tree($environments, $parent = 0, $depth = -1 ) {3002 function _jsdoc_get_tree($environments, $parent = 0, $depth = -1, $visited=array()) { 3003 3003 static $children, $parents, $terms; 3004 3004 … … 3033 3033 3034 3034 if ($parents[$parent[1]]) { 3035 $tree = array_merge($tree, _jsdoc_get_tree($environments, $parent[1], $depth)); 3035 if (in_array($parent[1], $visited)) { 3036 return $tree; 3037 } 3038 $visited[] = $parent[1]; 3039 $tree = array_merge($tree, _jsdoc_get_tree($environments, $parent[1], $depth, $visited)); 3036 3040 } 3037 3041 }