]> git.mxchange.org Git - friendica.git/commitdiff
Bugfixing CurlResult
authorPhilipp Holzer <admin@philipp.info>
Thu, 11 Oct 2018 05:45:04 +0000 (07:45 +0200)
committerPhilipp Holzer <admin@philipp.info>
Thu, 11 Oct 2018 05:45:04 +0000 (07:45 +0200)
src/Network/Probe.php

index 7f80be4e47c7e7cbf7cc00f070556b39da6bbd1d..2c42643b44a07fae9389c4ac738aa3ebac54c82c 100644 (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;