summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-22 19:54:35 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-22 19:54:35 +0000
commit0029ebad111fd929936698d843556701df0f348c (patch)
tree2ed5d76824037f8245b7bc2640472a24817d849a /lib
parentdde1c00ce727b311c399271d02cb077f6725edb5 (diff)
Don't tryto show a section if nothing comes back from profiles
Diffstat (limited to 'lib')
-rw-r--r--lib/profilesection.php4
1 files changed, 4 insertions, 0 deletions
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');