From: Evan Prodromou Date: Fri, 23 Jan 2009 05:11:05 +0000 (+0100) Subject: Better math for seciton X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a7b80ef2304c281d65ef7d0fda395ef904cd4d55;p=quix0rs-gnu-social.git Better math for seciton --- diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index a46c738468..ff2aca6d6e 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, ($sum == 0) ? $weight : $weight/$sum); + $this->showTag($tag, $weight, ($sum == 0) ? 0 : $weight/$sum); } $this->out->elementEnd('ul');