diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 7f80be4e47..2c42643b44 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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;