diff --git a/infolog/inc/class.infolog_so.inc.php b/infolog/inc/class.infolog_so.inc.php index 0b014ce1d4..a6fabdb242 100644 --- a/infolog/inc/class.infolog_so.inc.php +++ b/infolog/inc/class.infolog_so.inc.php @@ -798,8 +798,8 @@ class infolog_so if ((int)$query['cat_id']) { - //$filtermethod .= ' AND info_cat='.intval($query['cat_id']).' '; - $cats = $GLOBALS['egw']->categories->return_all_children((int)$query['cat_id']); + $categories = new categories('','infolog'); + $cats = $categories->return_all_children((int)$query['cat_id']); $filtermethod .= ' AND info_cat'.(count($cats)>1? ' IN ('.implode(',',$cats).') ' : '='.(int)$query['cat_id']); } $join = $distinct = '';