Show (None) on no tag cloud results

This commit is contained in:
Evan Prodromou 2009-01-22 21:14:24 +00:00
parent 7cd275b982
commit 8112c04c3d

View File

@ -53,6 +53,7 @@ class TagCloudSection extends Section
$tags = $this->getTags();
if (!$tags) {
$this->out->element('p', null, _('None'));
return false;
}
@ -66,6 +67,11 @@ class TagCloudSection extends Section
$sum += $tags->weight;
}
if ($cnt == 0) {
$this->out->element('p', null, _('(None)'));
return false;
}
ksort($tw);
$this->out->elementStart('ul', 'tags xoxo tag-cloud');