Changeset 1663
- Timestamp:
- 08/26/08 22:45:42 (3 months ago)
- Files:
-
- trunk/bb-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bb-includes/functions.php
r1657 r1663 152 152 153 153 if ( !$_recursed ) { 154 foreach ( $_leaves as $leaf ) // Attach orphans to root 155 $branch[$leaf->forum_id] = true; 154 if ( !$root ) 155 foreach ( $_leaves as $leaf ) // Attach orphans to root 156 $branch[$leaf->forum_id] = true; 156 157 $_leaves = false; 157 158 return ( empty($branch) ? false : $branch ); … … 214 215 215 216 if ( $child_of || $hierarchical || $depth ) { 216 $_forums = bb_get_forums_hierarchical( $child_of, $depth, $forums, true ); 217 218 $_forums = bb_get_forums_hierarchical( $child_of, $depth, $forums ); 217 219 218 220 if ( !is_array( $_forums ) )