1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Minor fix to minor fix to diff order

Summary: We need to preserve keys here; the keys are the diff IDs and are meaningful.

Auditors: btrahan
This commit is contained in:
epriestley 2013-09-18 11:56:48 -07:00
parent 7d26252a3f
commit cd4cb12116

View file

@ -33,7 +33,7 @@ final class DifferentialRevisionViewController extends DifferentialController {
->setViewer($request->getUser()) ->setViewer($request->getUser())
->withRevisionIDs(array($this->revisionID)) ->withRevisionIDs(array($this->revisionID))
->execute(); ->execute();
$diffs = array_reverse($diffs); $diffs = array_reverse($diffs, $preserve_keys = true);
if (!$diffs) { if (!$diffs) {
throw new Exception( throw new Exception(