]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/Probe.php
Fix: The "extid" field wasn't updated
[friendica.git] / src / Network / Probe.php
index 6359d8607a4699ea1b50f0fdf52d9c12150f8b55..5f3c516820f544f10fe2bfd6e71fcd68797fd822 100644 (file)
@@ -439,6 +439,9 @@ class Probe
                }
 
                $body = $curlResult->getBody();
+               if (empty($body)) {
+                       return false;
+               }
 
                $doc = new DOMDocument();
                @$doc->loadHTML($body);
@@ -1274,7 +1277,7 @@ class Probe
                        return [];
                }
                $content = $curlResult->getBody();
-               if (!$content) {
+               if (empty($content)) {
                        return [];
                }
 
@@ -1610,7 +1613,7 @@ class Probe
        private static function pumpioProfileData($profile_link)
        {
                $curlResult = DI::httpRequest()->get($profile_link);
-               if (!$curlResult->isSuccess()) {
+               if (!$curlResult->isSuccess() || empty($curlResult->getBody())) {
                        return [];
                }