Skip to content

Commit

Permalink
Forum: Fix missing pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Nov 30, 2018
1 parent b309acf commit 792ef28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/modules/forum/mappers/Topic.php
Expand Up @@ -25,10 +25,12 @@ public function getTopicsByForumId($id, $pagination = NULL)

if (!empty($pagination)) {
$sql .= ' LIMIT '.implode(',',$pagination->getLimit());
$fileArray = $this->db()->queryArray($sql);
$pagination->setRows($this->db()->querycell('SELECT FOUND_ROWS()'));
} else {
$fileArray = $this->db()->queryArray($sql);
}

$fileArray = $this->db()->queryArray($sql);

$entry = [];
$user = null;
$dummyUser = null;
Expand Down

0 comments on commit 792ef28

Please sign in to comment.