diff --git a/include/class.ticket.php b/include/class.ticket.php index 6d68aae893ee823da44fbedf9638f4d75cf0d394..7876ab4c7ea04a5d2463007072a0cbe100f2154e 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -2302,9 +2302,9 @@ implements RestrictedAccess, Threadable { if ($autorespond && $message->isBounceOrAutoReply()) $autorespond = false; - $this->onMessage($message, $autorespond); //must be called b4 sending alerts to staff. + $this->onMessage($message, ($autorespond && $alerts)); //must be called b4 sending alerts to staff. - if ($autorespond && $cfg && $cfg->notifyCollabsONNewMessage()) + if ($autorespond && $alerts && $cfg && $cfg->notifyCollabsONNewMessage()) $this->notifyCollaborators($message, array('signature' => '')); if (!($alerts && $autorespond))