Skip to content

Commit

Permalink
Don't hardcode the prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Jul 16, 2019
1 parent 405b7c2 commit 4469e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/modules/forum/mappers/Topic.php
Expand Up @@ -298,8 +298,8 @@ public function getLastActiveTopics($limit = null)
$sql = 'SELECT *
FROM
( SELECT DISTINCT(`p`.`topic_id`),`t`.`topic_title` AS `topic_title`,`t`.`forum_id` AS `forum_id`,`p`.`date_created`
FROM `ilch_forum_posts` AS `p`
LEFT JOIN `ilch_forum_topics` AS `t` ON `p`.`topic_id` = `t`.`id`
FROM `[prefix]_forum_posts` AS `p`
LEFT JOIN `[prefix]_forum_topics` AS `t` ON `p`.`topic_id` = `t`.`id`
ORDER BY `p`.`date_created` DESC
) AS `innerfrom`
GROUP BY `innerfrom`.`topic_id`
Expand Down

0 comments on commit 4469e8d

Please sign in to comment.