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) { foreach ($tags as $tag) {
$out->elementStart('li'); $tag = trim($tag);
$out->element('a', if (!empty($tag)) {
array('rel' => 'tag', $out->elementStart('li');
'href' => Notice_tag::url($tag)), $out->element('a',
$tag); array('rel' => 'tag',
$out->elementEnd('li'); 'href' => Notice_tag::url($tag)),
$out->text(' '); $tag);
$out->elementEnd('li');
$out->text(' ');
}
} }
$out->elementEnd('ul'); $out->elementEnd('ul');