Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15451549
D13476.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13476.diff
View Options
diff --git a/src/applications/project/query/PhabricatorProjectQuery.php b/src/applications/project/query/PhabricatorProjectQuery.php
--- a/src/applications/project/query/PhabricatorProjectQuery.php
+++ b/src/applications/project/query/PhabricatorProjectQuery.php
@@ -196,12 +196,18 @@
$default = null;
$file_phids = mpull($projects, 'getProfileImagePHID');
- $files = id(new PhabricatorFileQuery())
- ->setParentQuery($this)
- ->setViewer($this->getViewer())
- ->withPHIDs($file_phids)
- ->execute();
- $files = mpull($files, null, 'getPHID');
+ $file_phids = array_filter($file_phids);
+ if ($file_phids) {
+ $files = id(new PhabricatorFileQuery())
+ ->setParentQuery($this)
+ ->setViewer($this->getViewer())
+ ->withPHIDs($file_phids)
+ ->execute();
+ $files = mpull($files, null, 'getPHID');
+ } else {
+ $files = array();
+ }
+
foreach ($projects as $project) {
$file = idx($files, $project->getProfileImagePHID());
if (!$file) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 29, 10:38 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386941
Default Alt Text
D13476.diff (1 KB)
Attached To
Mode
D13476: Don't try to load profile images for projects with no profile image
Attached
Detach File
Event Timeline
Log In to Comment