Don't tryto show a section if nothing comes back from profiles

This commit is contained in:
Evan Prodromou 2009-01-22 19:54:35 +00:00
parent dde1c00ce7
commit 0029ebad11

View File

@ -52,6 +52,10 @@ class ProfileSection extends Section
{ {
$profiles = $this->getProfiles(); $profiles = $this->getProfiles();
if (!$profiles) {
return false;
}
$cnt = 0; $cnt = 0;
$this->out->elementStart('ul', 'entities users xoxo'); $this->out->elementStart('ul', 'entities users xoxo');