Fix off by one error
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 19 Aug 2010 22:09:35 +0000 (18:09 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 19 Aug 2010 22:13:21 +0000 (18:13 -0400)
Bug: 9188
Submitted By: gavin (dot) mccullagh (at) gcd (dot) ie

horde/lib/Block/feed.php

index 55bf598..8956efc 100644 (file)
@@ -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 .= '<a href="' . $entry->link. '"';