From: Evan Prodromou Date: Fri, 23 Jan 2009 05:10:25 +0000 (+0100) Subject: A section X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a130bb9d6da4b1b01a3ff9b0c674494dd465d512;p=quix0rs-gnu-social.git A section --- diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index 178dd88ca7..a46c738468 100644 --- a/lib/tagcloudsection.php +++ b/lib/tagcloudsection.php @@ -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');