diff options
Diffstat (limited to 'app/Model/Webhook.php')
-rw-r--r-- | app/Model/Webhook.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Model/Webhook.php b/app/Model/Webhook.php index dd277bf8..7c17e61e 100644 --- a/app/Model/Webhook.php +++ b/app/Model/Webhook.php @@ -22,11 +22,9 @@ class Webhook extends Base $token = $this->config->get('webhook_token'); if (! empty($url)) { - if (strpos($url, '?') !== false) { $url .= '&token='.$token; - } - else { + } else { $url .= '?token='.$token; } |