From a130bb9d6da4b1b01a3ff9b0c674494dd465d512 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 23 Jan 2009 06:10:25 +0100 Subject: [PATCH] A section --- lib/tagcloudsection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');