diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-12-12 00:57:13 -0500 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-12-12 00:57:13 -0500 |
commit | fd1327220663699801945f681f9eb5cba90fbc40 (patch) | |
tree | f423021eae76965795d9087b65a463798fb5424f /actions | |
parent | 816f87fd27ea7dbac291c8394f8b4ad0f9974f87 (diff) |
don't show form if subscription can't be found (weirdly)
darcs-hash:20081212055713-84dde-1b2aa99861ee0ab7c63a48152a5590b4d2f360d9.gz
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', |