Bugfixing CurlResult

pull/5880/head
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
1 changed files with 2 additions and 2 deletions

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;