diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-01-22 19:54:35 +0000 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-22 19:54:35 +0000 |
commit | 0029ebad111fd929936698d843556701df0f348c (patch) | |
tree | 2ed5d76824037f8245b7bc2640472a24817d849a /lib | |
parent | dde1c00ce727b311c399271d02cb077f6725edb5 (diff) |
Don't tryto show a section if nothing comes back from profiles
Diffstat (limited to 'lib')
-rw-r--r-- | lib/profilesection.php | 4 |
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'); |