summaryrefslogtreecommitdiff
path: root/lib/profileaction.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-07-01 18:40:14 -0700
committerZach Copley <zach@controlyourself.ca>2009-07-01 18:40:14 -0700
commit734f631e1ea9022c6de492e0d2979c9ca00585a4 (patch)
treea95e942faef18e6e4f5461a09d6b9b9700416412 /lib/profileaction.php
parent6bc37a3254f814b6bece4a62fed4fc27f785f0bb (diff)
Show correct number of profile avatars and 'all' link in subs asides
Diffstat (limited to 'lib/profileaction.php')
-rw-r--r--lib/profileaction.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/profileaction.php b/lib/profileaction.php
index 2519922b2..eeb5dbe48 100644
--- a/lib/profileaction.php
+++ b/lib/profileaction.php
@@ -108,7 +108,9 @@ class ProfileAction extends OwnerDesignAction
$this->element('h2', null, _('Subscriptions'));
- if ($profile) {
+ $cnt = 0;
+
+ if (!empty($profile)) {
$pml = new ProfileMiniList($profile, $this);
$cnt = $pml->show();
if ($cnt == 0) {
@@ -137,7 +139,9 @@ class ProfileAction extends OwnerDesignAction
$this->element('h2', null, _('Subscribers'));
- if ($profile) {
+ $cnt = 0;
+
+ if (!empty($profile)) {
$pml = new ProfileMiniList($profile, $this);
$cnt = $pml->show();
if ($cnt == 0) {