summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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');