From: Mikael Nordfeldth Date: Sat, 25 Oct 2014 15:57:20 +0000 (+0200) Subject: multiGet instead of listFind, subs now in order! X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7589e788170e8c322e858abfe35522cf71224579;p=quix0rs-gnu-social.git multiGet instead of listFind, subs now in order! It was desired that subscriptions were listed in an order with the latest first. --- 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; }