mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Don't show empty attributes.
Summary: Some places we pass in empty strings and get hanging middots. Would prefer not have the middot, and let the developer decide if they should set a 'nothing here' state. Test Plan: Checked Repositories with no lint messages. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5920
This commit is contained in:
parent
63c27b322c
commit
99f648e4eb
1 changed files with 3 additions and 1 deletions
|
@ -122,7 +122,9 @@ final class PhabricatorObjectItemView extends AphrontTagView {
|
|||
}
|
||||
|
||||
public function addAttribute($attribute) {
|
||||
$this->attributes[] = $attribute;
|
||||
if (!empty($attribute)) {
|
||||
$this->attributes[] = $attribute;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue