Corrected error for script.

This commit is contained in:
William Phillips
2018-06-12 17:39:12 +01:00
committed by GitHub
parent d480be9b05
commit fc0096e0f9

View File

@@ -255,7 +255,7 @@ add_hook('TicketUserReply', 1, function($vars) {
); );
processNotification($dataPacket); processNotification($dataPacket);
}); });
function processNotification($dataPacket, $discordWebHookURL) { function processNotification($dataPacket) {
$dataString = json_encode($dataPacket); $dataString = json_encode($dataPacket);
$curl = curl_init(); $curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $GLOBALS['discordWebHookURL']); curl_setopt($curl, CURLOPT_URL, $GLOBALS['discordWebHookURL']);