Avoid problems with an empty body
This commit is contained in:
parent
795761ee89
commit
75a90f5e5d
|
@ -2640,7 +2640,7 @@ class Item
|
|||
unset($hook_data);
|
||||
}
|
||||
|
||||
$body = $item['body'];
|
||||
$body = $item['body'] ?? '';
|
||||
$item['body'] = preg_replace("/\s*\[attachment .*?\].*?\[\/attachment\]\s*/ism", '', $item['body']);
|
||||
self::putInCache($item);
|
||||
$item['body'] = $body;
|
||||
|
|
Loading…
Reference in a new issue