]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilesection.php
Don't tryto show a section if nothing comes back from profiles
[quix0rs-gnu-social.git] / 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');