A section

This commit is contained in:
Evan Prodromou 2009-01-23 06:10:25 +01:00
parent 597245ffc3
commit a130bb9d6d

View File

@ -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');