We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit a821ec49 authored by Evan Prodromou's avatar Evan Prodromou

don't show empty tag links for bookmarks

parent 5fd08b79
......@@ -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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment