From a762682ddb57e3557cc9ca6203709e6710090e67 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Wed, 31 Dec 2014 15:02:29 -0500 Subject: [PATCH] Closes #99 Only attempt to send email if ticket's email is not blank --- admin/change_status.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/change_status.php b/admin/change_status.php index 890e61c2..8f0448ee 100644 --- a/admin/change_status.php +++ b/admin/change_status.php @@ -94,7 +94,11 @@ if ($statusRow['IsClosed']) // Closed // Notify customer require(HESK_PATH . 'inc/email_functions.inc.php'); - hesk_notifyCustomer('ticket_closed'); + + if (!empty($ticket['email'])) + { + hesk_notifyCustomer('ticket_closed'); + } } elseif ($statusRow['ID'] != 0) //Ticket is still open, but not new {