Fix undefined index body in Model\Item
This commit is contained in:
parent
d09ab35816
commit
4e9ba728c4
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue