Index: .
===================================================================
--- .	(revision 2528)
+++ .	(working copy)
@@ -109,6 +109,9 @@
 		$children = _get_category_hierarchy();
 		if ( ! empty($children) )
 			$categories = & _get_cat_children($child_of, $categories);
+		elseif ($child_of) {
+			return array();
+		}
 	}
 
 	// Update category counts to include children.
