don't show empty tag links for bookmarks

This commit is contained in:
Evan Prodromou 2011-04-21 16:13:47 -04:00
parent 5fd08b798f
commit a821ec4963

View File

@ -109,13 +109,16 @@ class BookmarkListItem extends NoticeListItemAdapter
}
foreach ($tags as $tag) {
$out->elementStart('li');
$out->element('a',
array('rel' => 'tag',
'href' => Notice_tag::url($tag)),
$tag);
$out->elementEnd('li');
$out->text(' ');
$tag = trim($tag);
if (!empty($tag)) {
$out->elementStart('li');
$out->element('a',
array('rel' => 'tag',
'href' => Notice_tag::url($tag)),
$tag);
$out->elementEnd('li');
$out->text(' ');
}
}
$out->elementEnd('ul');