diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-01-23 06:11:05 +0100 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-23 06:11:05 +0100 |
commit | a7b80ef2304c281d65ef7d0fda395ef904cd4d55 (patch) | |
tree | 7c382297c2ff6fa7e3091352bc4a08ffe59aed57 | |
parent | a130bb9d6da4b1b01a3ff9b0c674494dd465d512 (diff) |
Better math for seciton
-rw-r--r-- | lib/tagcloudsection.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index a46c73846..ff2aca6d6 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'); |