From 2020370e027f8c0b8b0001c152e5de909a771092 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 3cd305cac..f825f99fb 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -1367,8 +1367,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'))
@@ -2939,7 +2939,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