define Subscription_queue::exists as static
This commit is contained in:
parent
76396041e2
commit
5929b629e5
@ -47,10 +47,10 @@ class Subscription_queue extends Managed_DataObject
|
|||||||
return $rq;
|
return $rq;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function exists(Profile $subscriber, Profile $other)
|
static function exists(Profile $subscriber, Profile $other)
|
||||||
{
|
{
|
||||||
$sub = Subscription_queue::pkeyGet(array('subscriber' => $subscriber->id,
|
$sub = Subscription_queue::pkeyGet(array('subscriber' => $subscriber->getID(),
|
||||||
'subscribed' => $other->id));
|
'subscribed' => $other->getID()));
|
||||||
return ($sub instanceof Subscription_queue);
|
return ($sub instanceof Subscription_queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user