diff options
author | Robin Millette <millette@plantard.controlezvous.ca> | 2009-01-23 05:57:15 +0000 |
---|---|---|
committer | Robin Millette <millette@plantard.controlezvous.ca> | 2009-01-23 05:57:15 +0000 |
commit | 171d89aab79207f08b3c84d76a4b2bb50185490d (patch) | |
tree | 34efcec8e274ec33cb1af215a6b1c4490fda0cb0 /lib/tagcloudsection.php | |
parent | fbd1cf4dfa452166a5985d9a9177d57e8554f09f (diff) | |
parent | 277a6e984c6778865a62b5a1b99219327460be6d (diff) |
Merge branch 'master' of /var/www/trunk
Diffstat (limited to 'lib/tagcloudsection.php')
-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 178dd88ca..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, $weight/$sum); + $this->showTag($tag, $weight, ($sum == 0) ? 0 : $weight/$sum); } $this->out->elementEnd('ul'); |