From 836ff4390776a265c316bea697a5ad15d4f159c7 Mon Sep 17 00:00:00 2001 From: Frank Keulen Date: Wed, 11 Dec 2024 15:01:03 +0100 Subject: [PATCH] Also allow empty result for powerautomate --- src/TeamsConnector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TeamsConnector.php b/src/TeamsConnector.php index 25a5aaa..36dfec8 100644 --- a/src/TeamsConnector.php +++ b/src/TeamsConnector.php @@ -42,7 +42,7 @@ public function send(TeamsConnectorInterface $card, $curlOptTimeout = 10, $curlO if (curl_error($ch)) { throw new \Exception(curl_error($ch), curl_errno($ch)); } - if ($result !== "1") { + if ($result !== "1" && $result !== "") { throw new \Exception('Error response: ' . $result); } }