From fc0096e0f9212b292b8e423f69d34ea63ea5e84b Mon Sep 17 00:00:00 2001 From: William Phillips Date: Tue, 12 Jun 2018 17:39:12 +0100 Subject: [PATCH] Corrected error for script. --- includes/hooks/WHMCS-Discord-Notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/hooks/WHMCS-Discord-Notifications.php b/includes/hooks/WHMCS-Discord-Notifications.php index 219a8f6..484efb4 100644 --- a/includes/hooks/WHMCS-Discord-Notifications.php +++ b/includes/hooks/WHMCS-Discord-Notifications.php @@ -255,7 +255,7 @@ add_hook('TicketUserReply', 1, function($vars) { ); processNotification($dataPacket); }); -function processNotification($dataPacket, $discordWebHookURL) { +function processNotification($dataPacket) { $dataString = json_encode($dataPacket); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $GLOBALS['discordWebHookURL']);