Changeset 1663

Show
Ignore:
Timestamp:
08/26/08 22:45:42 (3 months ago)
Author:
mdawaffe
Message:

bb_get_forums_hierarchical() bugs for non-zero child_of

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bb-includes/functions.php

    r1657 r1663  
    152152 
    153153        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; 
    156157                $_leaves = false; 
    157158                return ( empty($branch) ? false : $branch ); 
     
    214215 
    215216        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 ); 
    217219 
    218220                if ( !is_array( $_forums ) )