From: Michael J. Rubinsky Date: Thu, 19 Aug 2010 22:09:35 +0000 (-0400) Subject: Fix off by one error X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7981d3a7ef96c967da0ddc0862ceb5e208d04e54;p=horde.git Fix off by one error Bug: 9188 Submitted By: gavin (dot) mccullagh (at) gcd (dot) ie --- 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 .= '