Fix fatal error with incomplete contact data upon delivery
This commit is contained in:
parent
1f42f51351
commit
54d96da94a
|
@ -1455,6 +1455,11 @@ class DFRN
|
||||||
|
|
||||||
$dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]);
|
$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");
|
$content_type = ($public_batch ? "application/magic-envelope+xml" : "application/json");
|
||||||
|
|
||||||
$postResult = Network::post($dest_url, $envelope, ["Content-Type: ".$content_type]);
|
$postResult = Network::post($dest_url, $envelope, ["Content-Type: ".$content_type]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user