diff --git a/include/class.ticket.php b/include/class.ticket.php
index c8d0e8c640f1b918a70166934320ddd431fec1ac..0f39b8fdcabdd2711108c82270f44c18756d19ff 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -976,7 +976,7 @@ class Ticket {
             $autorespond=$dept->autoRespONNewMessage();
 
 
-        if(!$autorespond && !$cfg->autoRespONNewMessage()) return;  //no autoresp or alerts.
+        if(!$autorespond || !$cfg->autoRespONNewMessage()) return;  //no autoresp or alerts.
 
         $this->reload();