From: Mike Cochrane Date: Thu, 24 Jul 2008 23:45:33 +0000 (-0400) Subject: Lazy/Auto load the class files as needed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=278006e4cc19f5138223fbc0f8d0385cb788a1b2;p=quix0rs-gnu-social.git Lazy/Auto load the class files as needed darcs-hash:20080724234533-533db-ec2e235401e7f670ee8094ba8d70dc95c3e6dd63.gz --- 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 {