From a95e7f6504dd079b1b65503eac90177a3b088f17 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Thu, 11 Oct 2018 07:45:04 +0200 Subject: [PATCH] Bugfixing CurlResult --- src/Network/Probe.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;