Fix Webhook error handling logic

This commit is contained in:
Phil 2024-10-02 16:52:26 +02:00
parent 9beb8136fe
commit 6a5cb00131
1 changed files with 2 additions and 2 deletions

View File

@ -126,8 +126,8 @@ function webhook2api_processConfiguration($configuration, $post_input) {
}
if (!empty($result['values']['http_code'])) {
$http_code = $result['values']['http_code'];
} else {
$http_code = 403;
} elseif ($result['is_error'] != 0) {
$http_code = 403;
}
}
if ($http_code != '200') {