From: Michael Vogel Date: Wed, 10 Jul 2019 03:16:50 +0000 (+0200) Subject: Fix fatal error with incomplete contact data upon delivery X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=54d96da94ab05297226a5978999fbf2221f5ca49;p=friendica.git Fix fatal error with incomplete contact data upon delivery --- diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 3aa3ab957c..44cd21c391 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -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]);