mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Fix fatal errors and notices
This commit is contained in:
parent
425790d2fd
commit
74e5a73678
3 changed files with 5 additions and 1 deletions
|
@ -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'] = '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue