diff options
Diffstat (limited to 'actions')
-rw-r--r-- | actions/subscriptions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/subscriptions.php b/actions/subscriptions.php index d55c15abd..f518a1f92 100644 --- a/actions/subscriptions.php +++ b/actions/subscriptions.php @@ -56,8 +56,13 @@ class SubscriptionsAction extends GalleryAction { class SubscriptionsList extends ProfileList { function show_owner_controls($profile) { + $sub = Subscription::pkeyGet(array('subscriber' => $this->owner->id, 'subscribed' => $profile->id)); + if (!$sub) { + return; + } + common_element_start('form', array('id' => 'subedit-' . $profile->id, 'method' => 'post', 'class' => 'subedit', |