Bugfixing CurlResult

This commit is contained in:
Philipp Holzer 2018-10-11 07:45:04 +02:00
parent a066befba5
commit a95e7f6504
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

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;