diff --git a/inc/category.class.php b/inc/category.class.php index d84ce1c7d..ce4f4f5c0 100644 --- a/inc/category.class.php +++ b/inc/category.class.php @@ -120,7 +120,7 @@ public static function getCategoryTree($rootId = 0, $helpdeskHome = false) { ] ] + ($helpdeskHome ? ['helpdesk_home' => '1']: []) - + $dbUtils->getEntitiesRestrictCriteria($form_table, "", "", true, false), + + [$dbUtils->getEntitiesRestrictCriteria($form_table, "", "", true, false)], ]); $count2 = new QuerySubQuery([ 'COUNT' => 'count',