diff --git a/endpoints/notifications/testntfynotifications.php b/endpoints/notifications/testntfynotifications.php index 1f7efb06c..26f0ba0e6 100644 --- a/endpoints/notifications/testntfynotifications.php +++ b/endpoints/notifications/testntfynotifications.php @@ -26,6 +26,9 @@ $host = rtrim($data["host"], '/'); $topic = $data["topic"]; $headers = json_decode($data["headers"], true); + if ($headers === null) { + $headers = []; + } $customheaders = array_map(function ($key, $value) { return "$key: $value"; }, array_keys($headers), $headers); diff --git a/includes/version.php b/includes/version.php index 70d9561e7..41e33ad23 100644 --- a/includes/version.php +++ b/includes/version.php @@ -1,3 +1,3 @@ \ No newline at end of file