From 5929b629e586fd1a44c0441f527a143db87d7807 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 11 Jul 2015 00:08:23 +0200 Subject: [PATCH] define Subscription_queue::exists as static --- classes/Subscription_queue.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.39.5