﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
4870	Bug in get_categories when asking for category children	hovenko	ryan	"When asking for categories that are child of another category (cat1) and to 
include empty categories I get different behaviour wether cat1 has children 
or not.



Take the following code:

{{{
$cat_children   = get_categories(
        array(
                'child_of'      => 1,
                'hide_empty'    => false,
        );
);

print_r($cat_children);
}}}



Scenario 1:[[BR]]
I have the following categories:
 1 - cat1 (no parent)[[BR]]
 2 - cat2 (no parent)[[BR]]
 3 - cat3 (parent:1)

In this case it prints out cat3.



Scenario 2:[[BR]]
I have the following categories:
 1 - cat1 (no parent)[[BR]]
 2 - cat2 (no parent)

In this case it prints out cat1 and cat2.


Expected behaviour is to get an empty list, simply because cat1 
doesn't have any children."	defect (bug)	closed	high		General	2.2.2	major	wontfix	categories	
