Include main category even if no sub-cats are selected

This commit is contained in:
Nathan Gray 2011-02-22 20:14:35 +00:00
parent 83f3aaa5f3
commit 96dd9d46c2

View File

@ -238,6 +238,8 @@ abstract class bo_merge
$path = explode(' / ', $path);
unset($path[0]); // Drop main
$cats[$GLOBALS['egw']->categories->id2name($cat_id,'main')][] = implode(' / ', $path);
} elseif($cat_id) {
$cats[$cat_id] = array();
}
}
foreach($cats as $main => $cat) {