summaryrefslogtreecommitdiff
path: root/actions/public.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/public.php')
-rw-r--r--actions/public.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/public.php b/actions/public.php
index d2285fb8f..b66a3f0f1 100644
--- a/actions/public.php
+++ b/actions/public.php
@@ -75,7 +75,8 @@ class PublicAction extends StreamAction {
if ($cnt > 0) {
common_element_start('ul', array('id' => 'notices'));
- for ($i = 0; $i < min($cnt, NOTICES_PER_PAGE); $i++) {
+ $iMax = min($cnt, NOTICES_PER_PAGE);
+ for ($i = 0; $i < $iMax; $i++) {
if ($notice->fetch()) {
$this->show_notice($notice);
} else {