diff --git a/src/applications/owners/storage/package/PhabricatorOwnersPackage.php b/src/applications/owners/storage/package/PhabricatorOwnersPackage.php index 18928ed0e9..4bbd924944 100644 --- a/src/applications/owners/storage/package/PhabricatorOwnersPackage.php +++ b/src/applications/owners/storage/package/PhabricatorOwnersPackage.php @@ -135,15 +135,9 @@ class PhabricatorOwnersPackage extends PhabricatorOwnersDAO { $packages = $package->loadAllWhere('id in (%Ld)', array_keys($order)); - $result = array(); - // Reorder packages according to specificity. - foreach ($packages as $package) { - $result[$package->getID()] = $package; - } + $packages = array_select_keys($packages, array_keys($order)); - $result = array_select_keys($result, array_keys($order)); - - return $result; + return $packages; } public function save() {