Merge pull request #12584 from annando/avoid-undefined
Avoid undefined variable "$rendered"
This commit is contained in:
commit
7942881f7e
1 changed files with 4 additions and 2 deletions
|
@ -3452,6 +3452,8 @@ class Item
|
|||
$preview_mode = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'preview_mode', BBCode::PREVIEW_LARGE);
|
||||
if ($preview_mode != BBCode::PREVIEW_NONE) {
|
||||
$rendered = BBCode::convertAttachment('', BBCode::INTERNAL, false, $data, $uriid, $preview_mode);
|
||||
} else {
|
||||
$rendered = '';
|
||||
}
|
||||
} elseif (!self::containsLink($content, $data['url'], Post\Media::HTML)) {
|
||||
$rendered = Renderer::replaceMacros(Renderer::getMarkupTemplate('content/link.tpl'), [
|
||||
|
|
Loading…
Reference in a new issue