From c2db07319e3a1ff52c9dd92c2148cfc6b057dfbf Mon Sep 17 00:00:00 2001 From: aydreeihn <adriane@enhancesoft.com> Date: Fri, 6 Jul 2018 09:41:32 -0500 Subject: [PATCH] Code Improvement --- include/class.ticket.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/class.ticket.php b/include/class.ticket.php index 7e6df8c7f..5078b566e 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -1370,8 +1370,8 @@ implements RestrictedAccess, Threadable, Searchable { return false; } - function checkReply($userType, $replyType, $forceAlert=false) { - if ($userType == 'cc' && ($replyType == 'reply-all' || $forceAlert)) + function checkReply($userType, $replyType) { + if ($userType == 'cc' && $replyType == 'reply-all') return true; if ($userType == 'user' && ($replyType == 'reply-all' || $replyType == 'reply-user')) @@ -2944,7 +2944,7 @@ implements RestrictedAccess, Threadable, Searchable { $attachments = $cfg->emailAttachments() ? $response->getAttachments() : array(); //Cc collaborators $collabsCc = array(); - if ($vars['ccs'] && Ticket::checkReply('cc', $vars['emailreply'], true)) { + if ($vars['ccs']) { $collabsCc[] = Collaborator::getCollabList($vars['ccs']); $collabsCc['cc'] = $collabsCc[0]; } -- GitLab