From accd91fa3a2d3e399bdb676429fe00d976fe7281 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Thu, 22 Oct 2015 13:17:04 -0400 Subject: [PATCH] Closes #382 Move to a wider scope --- inc/pipe_functions.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/pipe_functions.inc.php b/inc/pipe_functions.inc.php index f36188c9..3952fe12 100755 --- a/inc/pipe_functions.inc.php +++ b/inc/pipe_functions.inc.php @@ -48,6 +48,8 @@ function hesk_email2ticket($results, $pop3 = 0, $set_category = 1, $set_priority { global $hesk_settings, $hesklang, $hesk_db_link, $ticket; + $modsForHesk_settings = mfh_getSettings(); + // Process "Reply-To:" or "From:" email $tmpvar['email'] = isset($results['reply-to'][0]['address']) ? hesk_validateEmail($results['reply-to'][0]['address'], 'ERR', 0) : hesk_validateEmail($results['from'][0]['address'], 'ERR', 0); @@ -264,7 +266,6 @@ function hesk_email2ticket($results, $pop3 = 0, $set_category = 1, $set_priority // --> If ticket is assigned just notify the owner if ($ticket['owner']) { - $modsForHesk_settings = mfh_getSettings(); hesk_notifyAssignedStaff(false, 'new_reply_by_customer', $modsForHesk_settings, 'notify_reply_my'); } // --> No owner assigned, find and notify appropriate staff else {