]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Better math for seciton
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 23 Jan 2009 05:11:05 +0000 (06:11 +0100)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 23 Jan 2009 05:11:05 +0000 (06:11 +0100)
lib/tagcloudsection.php

index a46c7384687098d3ec0c0aff6c441b664beb8fb6..ff2aca6d6ec06eae34895ac3691fdb240aebcd80 100644 (file)
@@ -76,7 +76,7 @@ class TagCloudSection extends Section
 
         $this->out->elementStart('ul', 'tags xoxo tag-cloud');
         foreach ($tw as $tag => $weight) {
-            $this->showTag($tag, $weight, ($sum == 0) ? $weight : $weight/$sum);
+            $this->showTag($tag, $weight, ($sum == 0) ? 0 : $weight/$sum);
         }
         $this->out->elementEnd('ul');