Skip to content

Commit

Permalink
Fix newscontroller to not assume a limit has been set in a config and…
Browse files Browse the repository at this point in the history
… throw an error.
  • Loading branch information
dleffler committed Apr 24, 2011
1 parent b58ec2e commit 71f35e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/modules/news/controllers/newsController.php
Expand Up @@ -88,7 +88,7 @@ public function showall() {
'view'=>empty($this->params['view']) ? null : $this->params['view']
));

$morenews = (count($items) > $this->config['limit']) ? 1 : 0;
$morenews = (count($items) > $limit) ? 1 : 0;

assign_to_template(array(
'morenews'=>$morenews,
Expand Down

0 comments on commit 71f35e0

Please sign in to comment.