diff --git a/modules/mod_tags_popular/helper.php b/modules/mod_tags_popular/helper.php index 98f5ba1ec70a2..79a3faef8f7ba 100644 --- a/modules/mod_tags_popular/helper.php +++ b/modules/mod_tags_popular/helper.php @@ -97,16 +97,18 @@ public static function getList(&$params) $query->setLimit($maximum); $query->order('count DESC'); $equery = $db->getQuery(true) - ->select( - array( - 'a.tag_id', - 'a.count', - 'a.title', - 'a.access', - 'a.alias') + ->select( + array( + 'a.tag_id', + 'a.count', + 'a.title', + 'a.access', + 'a.alias', ) - ->from('(' . (string) $query . ') AS a') - ->order('a.title' . ' ' . $order_direction); + ) + ->from('(' . (string) $query . ') AS a') + ->order('a.title' . ' ' . $order_direction); + $query = $equery; } else