don't show form if subscription can't be found (weirdly)
darcs-hash:20081212055713-84dde-1b2aa99861ee0ab7c63a48152a5590b4d2f360d9.gz
This commit is contained in:
parent
816f87fd27
commit
fd13272206
|
@ -56,8 +56,13 @@ class SubscriptionsAction extends GalleryAction {
|
||||||
class SubscriptionsList extends ProfileList {
|
class SubscriptionsList extends ProfileList {
|
||||||
|
|
||||||
function show_owner_controls($profile) {
|
function show_owner_controls($profile) {
|
||||||
|
|
||||||
$sub = Subscription::pkeyGet(array('subscriber' => $this->owner->id,
|
$sub = Subscription::pkeyGet(array('subscriber' => $this->owner->id,
|
||||||
'subscribed' => $profile->id));
|
'subscribed' => $profile->id));
|
||||||
|
if (!$sub) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
common_element_start('form', array('id' => 'subedit-' . $profile->id,
|
common_element_start('form', array('id' => 'subedit-' . $profile->id,
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
'class' => 'subedit',
|
'class' => 'subedit',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user