Fix fatal errors and notices

This commit is contained in:
Michael 2020-09-18 12:08:40 +00:00
parent 425790d2fd
commit 74e5a73678
3 changed files with 5 additions and 1 deletions

View file

@ -563,7 +563,7 @@ class Feed
$data_text = strip_tags(trim($data['text'] ?? ''));
$item_body = strip_tags(trim($item['body'] ?? ''));
if (($data_text == $item_body) || strstr($item_body, $data_text)) {
if (!empty($data_text) && (($data_text == $item_body) || strstr($item_body, $data_text))) {
$data['text'] = '';
}