Fix possible fatal error when body is null
This commit is contained in:
parent
9226b98724
commit
8dd21d82f5
|
@ -1557,7 +1557,7 @@ class Transmitter
|
||||||
// The contentMap does contain the unmodified HTML.
|
// The contentMap does contain the unmodified HTML.
|
||||||
$language = self::getLanguage($item);
|
$language = self::getLanguage($item);
|
||||||
if (!empty($language)) {
|
if (!empty($language)) {
|
||||||
$richbody = BBCode::setMentionsToNicknames($item['body']);
|
$richbody = BBCode::setMentionsToNicknames($item['body'] ?? '');
|
||||||
$richbody = BBCode::removeAttachment($richbody);
|
$richbody = BBCode::removeAttachment($richbody);
|
||||||
|
|
||||||
$data['contentMap'][$language] = BBCode::convertForUriId($item['uri-id'], $richbody, BBCode::EXTERNAL);
|
$data['contentMap'][$language] = BBCode::convertForUriId($item['uri-id'], $richbody, BBCode::EXTERNAL);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user