From: Mikael Nordfeldth Date: Fri, 10 Jul 2015 22:08:23 +0000 (+0200) Subject: define Subscription_queue::exists as static X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5929b629e586fd1a44c0441f527a143db87d7807;p=quix0rs-gnu-social.git define Subscription_queue::exists as static --- diff --git a/classes/Subscription_queue.php b/classes/Subscription_queue.php index 878fcf5796..a60293e215 100644 --- a/classes/Subscription_queue.php +++ b/classes/Subscription_queue.php @@ -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); }