Closes #99 Only attempt to send email if ticket's email is not blank
This commit is contained in:
parent
dfb07b979c
commit
a762682ddb
@ -94,7 +94,11 @@ if ($statusRow['IsClosed']) // Closed
|
|||||||
|
|
||||||
// Notify customer
|
// Notify customer
|
||||||
require(HESK_PATH . 'inc/email_functions.inc.php');
|
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
|
elseif ($statusRow['ID'] != 0) //Ticket is still open, but not new
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user