From: epriestley Date: Mon, 27 Jan 2014 18:36:40 +0000 (-0800) Subject: Default to `array()` when failing to look up repository PHIDs. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b1d3948d77874721226240f1479b57658b50a78a;p=arcanist.git Default to `array()` when failing to look up repository PHIDs. Auditors: btrahan --- diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php index d971ae9b..dea5bb89 100644 --- a/src/workflow/ArcanistBaseWorkflow.php +++ b/src/workflow/ArcanistBaseWorkflow.php @@ -1575,7 +1575,7 @@ abstract class ArcanistBaseWorkflow extends Phobject { private function getRepositoryInformation() { if ($this->repositoryInfo === null) { list($info, $reasons) = $this->loadRepositoryInformation(); - $this->repositoryInfo = $info; + $this->repositoryInfo = nonempty($info, array()); $this->repositoryReasons = $reasons; }