diff options
Diffstat (limited to 'lib/tagcloudsection.php')
-rw-r--r-- | lib/tagcloudsection.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index 121dfc499..178dd88ca 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'); @@ -110,4 +116,9 @@ class TagCloudSection extends Section { return common_local_url('tag', array('tag' => $tag)); } + + function divId() + { + return 'tagcloud'; + } } |