Return early if body is empty in Network\Probe::updateFromFeed

- Address https://github.com/friendica/friendica/issues/10473#issuecomment-894815271
This commit is contained in:
Hypolite Petovan 2021-08-17 09:35:44 -04:00
parent 891c0ff130
commit 6f13663c45
1 changed files with 1 additions and 1 deletions

View File

@ -2167,7 +2167,7 @@ class Probe
{
// Search for the newest entry in the feed
$curlResult = DI::httpRequest()->get($data['poll']);
if (!$curlResult->isSuccess()) {
if (!$curlResult->isSuccess() || !$curlResult->getBody()) {
return '';
}