]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/GContact.php
Merge branch 'develop' of https://github.com/friendica/friendica into develop
[friendica.git] / src / Model / GContact.php
index f979abef523c24aa88822eef2da5fed43a79348e..26cb11175c5b48573f638ec1d7e3eec9bb8a2e42 100644 (file)
@@ -957,12 +957,12 @@ class GContact
 
                $url = $server."/main/statistics";
 
-               $result = Network::curl($url);
-               if (!$result["success"]) {
+               $curlResult = Network::curl($url);
+               if (!$curlResult->isSuccess()) {
                        return false;
                }
 
-               $statistics = json_decode($result["body"]);
+               $statistics = json_decode($curlResult->getBody());
 
                if (!empty($statistics->config)) {
                        if ($statistics->config->instance_with_ssl) {