From 7589e788170e8c322e858abfe35522cf71224579 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 25 Oct 2014 17:57:20 +0200 Subject: [PATCH] multiGet instead of listFind, subs now in order! It was desired that subscriptions were listed in an order with the latest first. --- classes/Profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Profile.php b/classes/Profile.php index 1af29b2620..a03f53cc7d 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -305,7 +305,7 @@ class Profile extends Managed_DataObject } try { - return User_group::listFind('id', $ids); + return User_group::multiGet('id', $ids); } catch (NoResultException $e) { return null; // throw exception when we handle it everywhere } @@ -593,7 +593,7 @@ class Profile extends Managed_DataObject { $subs = Subscription::getSubscribedIDs($this->id, $offset, $limit); try { - $profiles = Profile::listFind('id', $subs); + $profiles = Profile::multiGet('id', $subs); } catch (NoResultException $e) { return $e->obj; } @@ -604,7 +604,7 @@ class Profile extends Managed_DataObject { $subs = Subscription::getSubscriberIDs($this->id, $offset, $limit); try { - $profiles = Profile::listFind('id', $subs); + $profiles = Profile::multiGet('id', $subs); } catch (NoResultException $e) { return $e->obj; }