]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/tagcloudsection.php
Update version number
[quix0rs-gnu-social.git] / lib / tagcloudsection.php
index 178dd88ca7399fb9ff0fc330455d35383e0e9eef..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, $weight/$sum);
+            $this->showTag($tag, $weight, ($sum == 0) ? 0 : $weight/$sum);
         }
         $this->out->elementEnd('ul');