Closes #99 Only attempt to send email if ticket's email is not blank
This commit is contained in:
parent
dfb07b979c
commit
a762682ddb
@ -94,8 +94,12 @@ if ($statusRow['IsClosed']) // Closed
|
|||||||
|
|
||||||
// Notify customer
|
// Notify customer
|
||||||
require(HESK_PATH . 'inc/email_functions.inc.php');
|
require(HESK_PATH . 'inc/email_functions.inc.php');
|
||||||
|
|
||||||
|
if (!empty($ticket['email']))
|
||||||
|
{
|
||||||
hesk_notifyCustomer('ticket_closed');
|
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
|
||||||
{
|
{
|
||||||
$action = sprintf($hesklang['tsst'],$status_options[$status]);
|
$action = sprintf($hesklang['tsst'],$status_options[$status]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user