From c1a477e7d08cf9aedfbe302c56bfe4ab28a5f21c Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Mon, 10 May 2010 10:43:47 +0200 Subject: [PATCH] Do nothing on webhook without an url. --- src/IDF/Webhook.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/IDF/Webhook.php b/src/IDF/Webhook.php index bfdbc1f..4a7f939 100644 --- a/src/IDF/Webhook.php +++ b/src/IDF/Webhook.php @@ -85,6 +85,10 @@ class IDF_Webhook // Already processed. return; } + if ($item->payload['url'] == '') { + // We do nothing. + return; + } // We have either to retry or to push for the first time. $res = self::postNotification($item->payload); if ($res) {