Page MenuHomePhabricator

D8594.id20380.diff
No OneTemporary

D8594.id20380.diff

diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php
--- a/src/applications/people/storage/PhabricatorUser.php
+++ b/src/applications/people/storage/PhabricatorUser.php
@@ -652,7 +652,7 @@
}
public function loadProfileImageURI() {
- if ($this->profileImage && $this->profileImage !== self::ATTACHABLE) {
+ if ($this->profileImage && ($this->profileImage !== self::ATTACHABLE)) {
return $this->profileImage;
}
@@ -664,13 +664,11 @@
$file = id(new PhabricatorFile())->loadOneWhere('phid = %s', $src_phid);
if ($file) {
$this->profileImage = $file->getBestURI();
+ return $this->profileImage;
}
}
- if (!$this->profileImage) {
- $this->profileImage = self::getDefaultProfileImageURI();
- }
-
+ $this->profileImage = self::getDefaultProfileImageURI();
return $this->profileImage;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 1:16 PM (6 h, 2 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7037022
Default Alt Text
D8594.id20380.diff (941 B)

Event Timeline