]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Show (None) on no tag cloud results
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 22 Jan 2009 21:14:24 +0000 (21:14 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 22 Jan 2009 21:14:24 +0000 (21:14 +0000)
lib/tagcloudsection.php

index 121dfc49905296d26ac44549ef95abc8480c2bb7..1a7f721b2fa191de93c7371e7ca2fce1f876030a 100644 (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');