diff --git a/include/staff/faq-categories.inc.php b/include/staff/faq-categories.inc.php index e90f06cd88017ce603f952c76eebf535c561ff6c..4c484822751eeb0a6b8e3f5ad8ce59562ad523b6 100644 --- a/include/staff/faq-categories.inc.php +++ b/include/staff/faq-categories.inc.php @@ -140,8 +140,7 @@ if($_REQUEST['q'] || $_REQUEST['cid'] || $_REQUEST['topicId']) { //Search. } } else { //Category Listing. $categories = Category::objects() - ->annotate(array('faq_count'=>SqlAggregate::COUNT('faqs'))) - ->all(); + ->annotate(array('faq_count'=>SqlAggregate::COUNT('faqs'))); if (count($categories)) { $categories->sort(function($a) { return $a->getLocalName(); });