]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't tryto show a section if nothing comes back from profiles
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 22 Jan 2009 19:54:35 +0000 (19:54 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 22 Jan 2009 19:54:35 +0000 (19:54 +0000)
lib/profilesection.php

index 087adb2ef61c82d452f75fa605e9548cb5f51076..14068b08270df6edeeda7a771c015081a6584d9e 100644 (file)
@@ -52,6 +52,10 @@ class ProfileSection extends Section
     {
         $profiles = $this->getProfiles();
 
+        if (!$profiles) {
+            return false;
+        }
+
         $cnt = 0;
 
         $this->out->elementStart('ul', 'entities users xoxo');