diff --git a/classes/incident.php b/classes/incident.php index be08731..f381cdd 100644 --- a/classes/incident.php +++ b/classes/incident.php @@ -166,7 +166,6 @@ class Incident implements JsonSerializable while($subscriberData = $subscriberQuery->fetch_assoc()){ $telegramID = $subscriberData['telegramID']; $firstname = $subscriberData['firstname']; - $lastname = $subscriberData['lastname']; $tg_message = urlencode('Hi ' . $firstname . chr(10) . 'There is a status update on a service that you have subscribed. View online'); $response = json_decode(file_get_contents("https://api.telegram.org/bot" . TG_BOT_API_TOKEN . "/sendMessage?chat_id=" . $telegramID . "&parse_mode=HTML&text=" . $tg_message));