From: Evan Prodromou Date: Thu, 22 Jan 2009 21:14:24 +0000 (+0000) Subject: Show (None) on no tag cloud results X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8112c04c3de2463cb8bfa0b36c469b11421bb1f5;p=quix0rs-gnu-social.git Show (None) on no tag cloud results --- diff --git a/lib/tagcloudsection.php b/lib/tagcloudsection.php index 121dfc4990..1a7f721b2f 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');