]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/tagcloudsection.php
Update version number
[quix0rs-gnu-social.git] / lib / tagcloudsection.php
index 1a7f721b2fa191de93c7371e7ca2fce1f876030a..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');
 
@@ -116,4 +116,9 @@ class TagCloudSection extends Section
     {
         return common_local_url('tag', array('tag' => $tag));
     }
+
+    function divId()
+    {
+        return 'tagcloud';
+    }
 }