Fix undefined index body in Model\Item

This commit is contained in:
Hypolite Petovan 2018-07-22 12:41:48 -04:00
parent d09ab35816
commit 4e9ba728c4

View file

@ -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();