1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-02 02:40:58 +01:00

Minor, fix an order issue in the token leaderboard.

Auditors: chad
This commit is contained in:
epriestley 2013-03-22 12:25:00 -07:00
parent 022ac73d60
commit 4ffc2a1d00

View file

@ -22,9 +22,14 @@ final class PhabricatorTokenReceiverQuery
if (!$phids) { if (!$phids) {
return array(); return array();
} }
$objects = id(new PhabricatorObjectHandleData($phids)) $objects = id(new PhabricatorObjectHandleData($phids))
->setViewer($this->getViewer()) ->setViewer($this->getViewer())
->loadObjects(); ->loadObjects();
// Reorder the objects in the input order.
$objects = array_select_keys($objects, $phids);
return $objects; return $objects;
} }