Commit ba8b58ab authored by Batyr Mackenov's avatar Batyr Mackenov

Bugfix: searching by categories

parent 335ee115
......@@ -47,7 +47,7 @@ class iaCategory extends iaAbstractFrontHelperCategoryFlat
public function coreSearch($stmt, $start, $limit, $order)
{
$rows = $this->getAll(iaDb::STMT_CALC_FOUND_ROWS . ' ' . $stmt, null, $start, $limit);
$rows = $this->getAll($stmt, iaDb::STMT_CALC_FOUND_ROWS . $stmt, $start, $limit);
$count = $this->getFoundRows();
return [$count, $rows];
......
{if !empty($listings)}
<div class="ia-items">
{foreach $listings as $listing}
<p><a href="{$listing.link}">{$listing.title|escape} ({$listing.num_all_listings})</p>
{/foreach}
</div>
{/if}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment