Page MenuHomePhabricator

D15538.diff
No OneTemporary

D15538.diff

diff --git a/src/applications/people/controller/PhabricatorPeopleProfileViewController.php b/src/applications/people/controller/PhabricatorPeopleProfileViewController.php
--- a/src/applications/people/controller/PhabricatorPeopleProfileViewController.php
+++ b/src/applications/people/controller/PhabricatorPeopleProfileViewController.php
@@ -188,7 +188,11 @@
->withPHIDs($badge_phids)
->withStatuses(array(PhabricatorBadgesBadge::STATUS_ACTIVE))
->execute();
+ } else {
+ $badges = array();
+ }
+ if (count($badges)) {
$flex = new PHUIBadgeBoxView();
foreach ($badges as $badge) {
$item = id(new PHUIBadgeView())
@@ -198,7 +202,6 @@
->setQuality($badge->getQuality());
$flex->addItem($item);
}
-
} else {
$error = id(new PHUIBoxView())
->addClass('mlb')

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 12, 3:18 AM (1 w, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6715111
Default Alt Text
D15538.diff (870 B)

Event Timeline