Skip to content

Commit

Permalink
impress only when needed
Browse files Browse the repository at this point in the history
impress only when needed
  • Loading branch information
alikon authored Sep 7, 2016
1 parent d9f8228 commit 9eb9cbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/mod_banners/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public static function &getList(&$params)
$model->setState('filter.language', $app->getLanguageFilter());

$banners = $model->getItems();
$model->impress();

if ($banners) {
$model->impress();
}

return $banners;
}
Expand Down

0 comments on commit 9eb9cbd

Please sign in to comment.