diff options
author | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-24 19:45:33 -0400 |
---|---|---|
committer | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-24 19:45:33 -0400 |
commit | 278006e4cc19f5138223fbc0f8d0385cb788a1b2 (patch) | |
tree | e9da25c61dd63333703ef77188ee828868dccea6 | |
parent | 0dac70d010ae6a4769af35a3aab9fd70e420f525 (diff) |
Lazy/Auto load the class files as needed
darcs-hash:20080724234533-533db-ec2e235401e7f670ee8094ba8d70dc95c3e6dd63.gz
-rw-r--r-- | actions/public.php | 3 |
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 { |