From: Philipp Holzer Date: Thu, 11 Oct 2018 05:45:04 +0000 (+0200) Subject: Bugfixing CurlResult X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a95e7f6504dd079b1b65503eac90177a3b088f17;p=friendica.git Bugfixing CurlResult --- 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;