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,6 +109,8 @@ class BookmarkListItem extends NoticeListItemAdapter
} }
foreach ($tags as $tag) { foreach ($tags as $tag) {
$tag = trim($tag);
if (!empty($tag)) {
$out->elementStart('li'); $out->elementStart('li');
$out->element('a', $out->element('a',
array('rel' => 'tag', array('rel' => 'tag',
@ -117,6 +119,7 @@ class BookmarkListItem extends NoticeListItemAdapter
$out->elementEnd('li'); $out->elementEnd('li');
$out->text(' '); $out->text(' ');
} }
}
$out->elementEnd('ul'); $out->elementEnd('ul');
} }