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

index 178dd88ca7399fb9ff0fc330455d35383e0e9eef..a46c7384687098d3ec0c0aff6c441b664beb8fb6 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, $weight/$sum);
+            $this->showTag($tag, $weight, ($sum == 0) ? $weight : $weight/$sum);
         }
         $this->out->elementEnd('ul');