mirror of
https://github.com/metallicgloss/WHMCS-Discord-Notifications.git
synced 2025-12-19 23:09:21 +00:00
Corrected error for script.
This commit is contained in:
@@ -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']);
|
||||||
|
|||||||
Reference in New Issue
Block a user