Fix OR IMAP searches
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 17 Sep 2009 21:08:25 +0000 (15:08 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 17 Sep 2009 21:08:38 +0000 (15:08 -0600)
framework/Imap_Client/lib/Horde/Imap/Client/Search/Query.php

index b87fcf3..9b1c639 100644 (file)
@@ -282,10 +282,6 @@ class Horde_Imap_Client_Search_Query
                 // OR queries were not in IMAP 2
                 $imap4 = true;
 
-                if ($key == 0) {
-                    $query = '(' . $query . ')';
-                }
-
                 $ret = $val->build();
                 $query = 'OR (' . $ret['query'] . ') ' . $query;
             }