From bfb99043bffce1b766b3d8130ef9d1d694cb9a45 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 7 Dec 2012 15:38:31 -0800 Subject: [PATCH] Minor, fix an issue with some older navs. --- src/view/layout/AphrontSideNavFilterView.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/view/layout/AphrontSideNavFilterView.php b/src/view/layout/AphrontSideNavFilterView.php index 17e2c8a868..d4e6accdc9 100644 --- a/src/view/layout/AphrontSideNavFilterView.php +++ b/src/view/layout/AphrontSideNavFilterView.php @@ -83,9 +83,12 @@ final class AphrontSideNavFilterView extends AphrontView { $uri = null) { $item = id(new PhabricatorMenuItemView()) - ->setKey(strlen($key) ? $key : null) ->setName($name); + if (strlen($key)) { + $item->setKey($key); + } + if ($uri) { $item->setHref($uri); } else {