From 0029ebad111fd929936698d843556701df0f348c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 22 Jan 2009 19:54:35 +0000 Subject: Don't tryto show a section if nothing comes back from profiles --- lib/profilesection.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/profilesection.php') diff --git a/lib/profilesection.php b/lib/profilesection.php index 087adb2ef..14068b082 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'); -- cgit v1.2.3-54-g00ecf