From: Michael Date: Fri, 30 Apr 2021 04:45:31 +0000 (+0000) Subject: Avoid problems with an empty body X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=75a90f5e5dcc019c131bb63d4c6cb43c0a4042f1;p=friendica.git Avoid problems with an empty body --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 9fa657a69f..d842f2284f 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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;