From abed34ce0b99ce7a099d9a9fb0227f041b75ef69 Mon Sep 17 00:00:00 2001
From: soif <wxopwx@gmail.com>
Date: Wed, 1 Aug 2012 10:18:00 +0200
Subject: [PATCH] Web Ticket don't have emailId, they should not be affected by
 rules with TO-emailId defined

---
 include/class.filter.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class.filter.php b/include/class.filter.php
index bc9b08471..b6c81b42b 100644
--- a/include/class.filter.php
+++ b/include/class.filter.php
@@ -236,9 +236,9 @@ class Filter {
         );
         $match = false;
         # Respect configured filter email-id
-        if ($email['emailId'] && $this->getEmailId()
-                && $this->getEmailId() != $email['emailId'])
+        if ($this->getEmailId() && $this->getEmailId() != $email['emailId'])
             return false;
+
         foreach ($this->getRules() as $rule) {
             list($func, $pos, $neg) = $how[$rule['h']];
             # TODO: convert $what and $rule['v'] to mb_strtoupper and do
-- 
GitLab