From: Brion Vibber Date: Thu, 25 Feb 2010 23:22:23 +0000 (-0800) Subject: Fix bug on subscribe/unsubscribe in profile lists. Bogus call to nonexisting profile... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e254c660f66e1a04ac18220c95ef47aa88117e3c;p=quix0rs-gnu-social.git Fix bug on subscribe/unsubscribe in profile lists. Bogus call to nonexisting profile->getProfile() was masked by DB_DataObject --- diff --git a/actions/subscribe.php b/actions/subscribe.php index 3745311b66..b1243f3933 100644 --- a/actions/subscribe.php +++ b/actions/subscribe.php @@ -145,7 +145,7 @@ class SubscribeAction extends Action $this->element('title', null, _('Subscribed')); $this->elementEnd('head'); $this->elementStart('body'); - $unsubscribe = new UnsubscribeForm($this, $this->other->getProfile()); + $unsubscribe = new UnsubscribeForm($this, $this->other); $unsubscribe->show(); $this->elementEnd('body'); $this->elementEnd('html');