From 278006e4cc19f5138223fbc0f8d0385cb788a1b2 Mon Sep 17 00:00:00 2001 From: Mike Cochrane Date: Thu, 24 Jul 2008 19:45:33 -0400 Subject: [PATCH] Lazy/Auto load the class files as needed darcs-hash:20080724234533-533db-ec2e235401e7f670ee8094ba8d70dc95c3e6dd63.gz --- actions/public.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actions/public.php b/actions/public.php index d2285fb8fc..b66a3f0f13 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 {