don't show empty tag links for bookmarks
This commit is contained in:
parent
5fd08b798f
commit
a821ec4963
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user