From 0029ebad111fd929936698d843556701df0f348c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 22 Jan 2009 19:54:35 +0000 Subject: [PATCH] Don't tryto show a section if nothing comes back from profiles --- lib/profilesection.php | 4 ++++ 1 file changed, 4 insertions(+) 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'); -- 2.39.5