Merge pull request #5880 from nupplaphil/friendica-5879

Bugfixing CurlResult
This commit is contained in:
Michael Vogel 2018-10-11 07:46:07 +02:00 committed by GitHub
commit 339e76b314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1334,10 +1334,10 @@ class Probe
// Fetch all additional data from the feed
$curlResult = Network::curl($data["poll"]);
if (!empty($curlResult["errno"]) && ($curlResult['errno'] == CURLE_OPERATION_TIMEDOUT)) {
if ($curlResult->isTimeout()) {
return false;
}
$feed = $curlResult['body'];
$feed = $curlResult->getBody();
$dummy1 = null;
$dummy2 = null;
$dummy2 = null;