summaryrefslogtreecommitdiff
path: root/lib/tagcloudsection.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-23 06:10:25 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-01-23 06:10:25 +0100
commita130bb9d6da4b1b01a3ff9b0c674494dd465d512 (patch)
tree002e883bb5bc26ee7f0673897d20cc14f08b6229 /lib/tagcloudsection.php
parent597245ffc3fc15876f005c98aa585288f4901635 (diff)
A section
Diffstat (limited to 'lib/tagcloudsection.php')
-rw-r--r--lib/tagcloudsection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php
index 178dd88ca..a46c73846 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');