From 7981d3a7ef96c967da0ddc0862ceb5e208d04e54 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 19 Aug 2010 18:09:35 -0400 Subject: [PATCH] Fix off by one error Bug: 9188 Submitted By: gavin (dot) mccullagh (at) gcd (dot) ie --- horde/lib/Block/feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/horde/lib/Block/feed.php b/horde/lib/Block/feed.php index 55bf5988d..8956efc25 100644 --- a/horde/lib/Block/feed.php +++ b/horde/lib/Block/feed.php @@ -53,7 +53,7 @@ class Horde_Block_Horde_feed extends Horde_Block $html = ''; $count = 0; foreach ($this->_feed as $entry) { - if ($count++ > $this->_params['limit']) { + if (++$count > $this->_params['limit']) { break; } $html .= '