]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Default to `array()` when failing to look up repository PHIDs.
authorepriestley <git@epriestley.com>
Mon, 27 Jan 2014 18:36:40 +0000 (10:36 -0800)
committerepriestley <git@epriestley.com>
Mon, 27 Jan 2014 18:36:40 +0000 (10:36 -0800)
Auditors: btrahan

src/workflow/ArcanistBaseWorkflow.php

index d971ae9b673b232482046a624fd3b9779d070b3e..dea5bb89a15511adc6dbc75a2ca2f3e68fb4830e 100644 (file)
@@ -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;
     }