Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14039020
D15538.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
870 B
Referenced Files
None
Subscribers
None
D15538.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15538: Show "no badges" text in people profiles with archived badges only
Attached
Detach File
Event Timeline
Log In to Comment