From: Hypolite Petovan Date: Sun, 22 Jul 2018 16:41:48 +0000 (-0400) Subject: Fix undefined index body in Model\Item X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4e9ba728c450a4a95eeae0185451b9655e9e62b8;p=friendica.git Fix undefined index body in Model\Item --- diff --git a/src/Model/Item.php b/src/Model/Item.php index bb53896efc..ea5abab452 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2227,6 +2227,9 @@ class Item extends BaseObject */ private static function addLanguageToItemArray(&$item) { + // @TODO Find out why body can be empty here + $item['body'] = defaults($item, 'body', ''); + $naked_body = BBCode::toPlaintext($item['body'], false); $ld = new Text_LanguageDetect();