]> git.mxchange.org Git - friendica.git/commitdiff
Quit when message is empty, similar to #9681
authorAdam Clark <adam+friendicadev@isurf.ca>
Tue, 23 Feb 2021 18:16:59 +0000 (10:16 -0800)
committerAdam Clark <adam+friendicadev@isurf.ca>
Tue, 23 Feb 2021 18:16:59 +0000 (10:16 -0800)
src/Network/Probe.php

index f4ca0398a85f2f972c231ca419137dced9b325c7..3eb60648337ce10d649636ff0317e351f0e3442c 100644 (file)
@@ -1755,6 +1755,9 @@ class Probe
        public static function getFeedLink(string $url, string $body)
        {
                $doc = new DOMDocument();
+               if (empty($body)) {
+                       return '';
+               }
                if (!@$doc->loadHTML($body)) {
                        return false;
                }