diff --git a/src/view/layout/PhabricatorObjectItemView.php b/src/view/layout/PhabricatorObjectItemView.php index 17e98a4b8c..bfcbb74292 100644 --- a/src/view/layout/PhabricatorObjectItemView.php +++ b/src/view/layout/PhabricatorObjectItemView.php @@ -122,7 +122,9 @@ final class PhabricatorObjectItemView extends AphrontTagView { } public function addAttribute($attribute) { - $this->attributes[] = $attribute; + if (!empty($attribute)) { + $this->attributes[] = $attribute; + } return $this; }