1
1
Fork 0

Fix possible fatal error when body is null

This commit is contained in:
Michael 2021-07-27 12:25:38 +00:00
parent 9226b98724
commit 8dd21d82f5

View file

@ -1557,7 +1557,7 @@ class Transmitter
// The contentMap does contain the unmodified HTML.
$language = self::getLanguage($item);
if (!empty($language)) {
$richbody = BBCode::setMentionsToNicknames($item['body']);
$richbody = BBCode::setMentionsToNicknames($item['body'] ?? '');
$richbody = BBCode::removeAttachment($richbody);
$data['contentMap'][$language] = BBCode::convertForUriId($item['uri-id'], $richbody, BBCode::EXTERNAL);