]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Lazy/Auto load the class files as needed
authorMike Cochrane <mikec@mikenz.geek.nz>
Thu, 24 Jul 2008 23:45:33 +0000 (19:45 -0400)
committerMike Cochrane <mikec@mikenz.geek.nz>
Thu, 24 Jul 2008 23:45:33 +0000 (19:45 -0400)
darcs-hash:20080724234533-533db-ec2e235401e7f670ee8094ba8d70dc95c3e6dd63.gz

actions/public.php

index d2285fb8fcce57a1896dc9302822e2403ed61ee6..b66a3f0f13f9a1c6c9b6fca52e441743505b34f6 100644 (file)
@@ -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 {