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
Wed, Dec 25, 10:18 PM (18 m, 17 s)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6927788
Default Alt Text
D15538.diff (870 B)

Event Timeline