diff --git a/src/applications/harbormaster/step/HarbormasterLeaseWorkingCopyBuildStepImplementation.php b/src/applications/harbormaster/step/HarbormasterLeaseWorkingCopyBuildStepImplementation.php index 1bf5b33a0c..3c4d18f4b4 100644 --- a/src/applications/harbormaster/step/HarbormasterLeaseWorkingCopyBuildStepImplementation.php +++ b/src/applications/harbormaster/step/HarbormasterLeaseWorkingCopyBuildStepImplementation.php @@ -135,6 +135,9 @@ final class HarbormasterLeaseWorkingCopyBuildStepImplementation } $also_phids = $build_target->getFieldValue('repositoryPHIDs'); + if (!is_array($also_phids)) { + $also_phids = array(); + } $all_phids = $also_phids; $all_phids[] = $repository_phid;