diff --git a/src/infrastructure/export/engine/PhabricatorProjectsExportEngineExtension.php b/src/infrastructure/export/engine/PhabricatorProjectsExportEngineExtension.php index eb3bca3a49..24e4930714 100644 --- a/src/infrastructure/export/engine/PhabricatorProjectsExportEngineExtension.php +++ b/src/infrastructure/export/engine/PhabricatorProjectsExportEngineExtension.php @@ -24,6 +24,9 @@ final class PhabricatorProjectsExportEngineExtension $viewer = $this->getViewer(); $object_phids = mpull($objects, 'getPHID'); + if (!$object_phids) { + return array(); + } $projects_query = id(new PhabricatorEdgeQuery()) ->withSourcePHIDs($object_phids) diff --git a/src/infrastructure/export/engine/PhabricatorSubscriptionsExportEngineExtension.php b/src/infrastructure/export/engine/PhabricatorSubscriptionsExportEngineExtension.php index 8aedb38fa8..be642ae3b4 100644 --- a/src/infrastructure/export/engine/PhabricatorSubscriptionsExportEngineExtension.php +++ b/src/infrastructure/export/engine/PhabricatorSubscriptionsExportEngineExtension.php @@ -24,6 +24,9 @@ final class PhabricatorSubscriptionsExportEngineExtension $viewer = $this->getViewer(); $object_phids = mpull($objects, 'getPHID'); + if (!$object_phids) { + return array(); + } $projects_query = id(new PhabricatorEdgeQuery()) ->withSourcePHIDs($object_phids)