Bookmarks more robust to missing profiles
This commit is contained in:
parent
f9dc2fc0ab
commit
bf39c95795
@ -554,13 +554,15 @@ class BookmarkPlugin extends MicroAppPlugin
|
|||||||
|
|
||||||
foreach ($replies as $reply) {
|
foreach ($replies as $reply) {
|
||||||
$other = Profile::staticGet('id', $reply);
|
$other = Profile::staticGet('id', $reply);
|
||||||
$out->elementStart('li');
|
if (!empty($other)) {
|
||||||
$out->element('a', array('rel' => 'tag',
|
$out->elementStart('li');
|
||||||
'href' => $other->profileurl,
|
$out->element('a', array('rel' => 'tag',
|
||||||
'title' => $other->getBestName()),
|
'href' => $other->profileurl,
|
||||||
sprintf('for:%s', $other->nickname));
|
'title' => $other->getBestName()),
|
||||||
$out->elementEnd('li');
|
sprintf('for:%s', $other->nickname));
|
||||||
$out->text(' ');
|
$out->elementEnd('li');
|
||||||
|
$out->text(' ');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
|
Loading…
Reference in New Issue
Block a user