]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error with incomplete contact data upon delivery
authorMichael Vogel <icarus@dabo.de>
Wed, 10 Jul 2019 03:16:50 +0000 (05:16 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 10 Jul 2019 03:16:50 +0000 (05:16 +0200)
src/Protocol/DFRN.php

index 3aa3ab957c90515d53a4d78147a8d6a0e2368676..44cd21c391f1f38adf98cb9e93a023ee54a232c6 100644 (file)
@@ -1455,6 +1455,11 @@ class DFRN
 
                $dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]);
 
+               if (empty($dest_url)) {
+                       Logger::info('Empty destination', ['contact' => $contact]);
+                       return -24;
+               }
+
                $content_type = ($public_batch ? "application/magic-envelope+xml" : "application/json");
 
                $postResult = Network::post($dest_url, $envelope, ["Content-Type: ".$content_type]);