From: Evan Prodromou Date: Thu, 22 Jan 2009 19:54:35 +0000 (+0000) Subject: Don't tryto show a section if nothing comes back from profiles X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0029ebad111fd929936698d843556701df0f348c;p=quix0rs-gnu-social.git Don't tryto show a section if nothing comes back from profiles --- diff --git a/lib/profilesection.php b/lib/profilesection.php index 087adb2ef6..14068b0827 100644 --- a/lib/profilesection.php +++ b/lib/profilesection.php @@ -52,6 +52,10 @@ class ProfileSection extends Section { $profiles = $this->getProfiles(); + if (!$profiles) { + return false; + } + $cnt = 0; $this->out->elementStart('ul', 'entities users xoxo');