Page MenuHomePhabricator

D10655.id25590.diff
No OneTemporary

D10655.id25590.diff

diff --git a/src/applications/project/conduit/ProjectQueryConduitAPIMethod.php b/src/applications/project/conduit/ProjectQueryConduitAPIMethod.php
--- a/src/applications/project/conduit/ProjectQueryConduitAPIMethod.php
+++ b/src/applications/project/conduit/ProjectQueryConduitAPIMethod.php
@@ -24,7 +24,7 @@
return array(
'ids' => 'optional list<int>',
- 'names' => 'optional list<string>',
+ 'names' => 'optional list<string>',
'phids' => 'optional list<phid>',
'slugs' => 'optional list<string>',
'status' => 'optional '.$status_const,
@@ -96,11 +96,13 @@
// TODO: This is pretty hideous.
$slug_map = array();
- foreach ($slugs as $slug) {
- $normal = rtrim(PhabricatorSlug::normalize($slug), '/');
- foreach ($projects as $project) {
- if (in_array($normal, $project['slugs'])) {
- $slug_map[$slug] = $project['phid'];
+ if ($slugs) {
+ foreach ($slugs as $slug) {
+ $normal = rtrim(PhabricatorSlug::normalize($slug), '/');
+ foreach ($projects as $project) {
+ if (in_array($normal, $project['slugs'])) {
+ $slug_map[$slug] = $project['phid'];
+ }
}
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 27, 6:54 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6732140
Default Alt Text
D10655.id25590.diff (1 KB)

Event Timeline