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 // Fetch all additional data from the feed
$curlResult = Network::curl($data["poll"]); $curlResult = Network::curl($data["poll"]);
if (!empty($curlResult["errno"]) && ($curlResult['errno'] == CURLE_OPERATION_TIMEDOUT)) { if ($curlResult->isTimeout()) {
return false; return false;
} }
$feed = $curlResult['body']; $feed = $curlResult->getBody();
$dummy1 = null; $dummy1 = null;
$dummy2 = null; $dummy2 = null;
$dummy2 = null; $dummy2 = null;