Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13967372
D10880.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
957 B
Referenced Files
None
Subscribers
None
D10880.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Oct 17 2024, 1:10 PM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6722191
Default Alt Text
D10880.id.diff (957 B)
Attached To
Mode
D10880: Fix almanac.queryservices for no results
Attached
Detach File
Event Timeline
Log In to Comment