summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-22 21:14:24 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-22 21:14:24 +0000
commit8112c04c3de2463cb8bfa0b36c469b11421bb1f5 (patch)
treeac0a9f1a9530c656454f1c4bd1b8ba490e6c29c2 /lib
parent7cd275b982cc1e0255197b623bc54f86e1ba0d1e (diff)
Show (None) on no tag cloud results
Diffstat (limited to 'lib')
-rw-r--r--lib/tagcloudsection.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php
index 121dfc499..1a7f721b2 100644
--- a/lib/tagcloudsection.php
+++ b/lib/tagcloudsection.php
@@ -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');