define Subscription_queue::exists as static

This commit is contained in:
Mikael Nordfeldth 2015-07-11 00:08:23 +02:00
parent 76396041e2
commit 5929b629e5

View File

@ -47,10 +47,10 @@ class Subscription_queue extends Managed_DataObject
return $rq;
}
public function exists(Profile $subscriber, Profile $other)
static function exists(Profile $subscriber, Profile $other)
{
$sub = Subscription_queue::pkeyGet(array('subscriber' => $subscriber->id,
'subscribed' => $other->id));
$sub = Subscription_queue::pkeyGet(array('subscriber' => $subscriber->getID(),
'subscribed' => $other->getID()));
return ($sub instanceof Subscription_queue);
}