Page MenuHomePhabricator

D10880.diff
No OneTemporary

D10880.diff

diff --git a/src/applications/almanac/conduit/AlmanacQueryServicesConduitAPIMethod.php b/src/applications/almanac/conduit/AlmanacQueryServicesConduitAPIMethod.php
--- a/src/applications/almanac/conduit/AlmanacQueryServicesConduitAPIMethod.php
+++ b/src/applications/almanac/conduit/AlmanacQueryServicesConduitAPIMethod.php
@@ -52,11 +52,15 @@
$services = $query->executeWithCursorPager($pager);
- $bindings = id(new AlmanacBindingQuery())
- ->setViewer($viewer)
- ->withServicePHIDs(mpull($services, 'getPHID'))
- ->execute();
- $bindings = mgroup($bindings, 'getServicePHID');
+ if ($services) {
+ $bindings = id(new AlmanacBindingQuery())
+ ->setViewer($viewer)
+ ->withServicePHIDs(mpull($services, 'getPHID'))
+ ->execute();
+ $bindings = mgroup($bindings, 'getServicePHID');
+ } else {
+ $bindings = array();
+ }
$data = array();
foreach ($services as $service) {

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 13, 6:47 AM (5 d, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6722191
Default Alt Text
D10880.diff (957 B)

Event Timeline