Index: /branches/dev/data/class/SC_CustomerList.php
===================================================================
--- /branches/dev/data/class/SC_CustomerList.php	(revision 14038)
+++ /branches/dev/data/class/SC_CustomerList.php	(revision 14057)
@@ -208,15 +208,15 @@
         	if ( $this->arrSql['domain'] > 1 ) {
         		foreach($arrDomainType as $val) {
-        			if($this->arrSql['domain'] == '3') {
+        			if($this->arrSql['not_domaininc'] == '3') {
+        				if($sql_where == "") {
+        					$sql_where .= "dtb_customer.email NOT ILIKE ? ";
+        				} else {
+        					$sql_where .= "AND dtb_customer.email NOT ILIKE ? " ;
+        				}
+        			} else {
         				if($sql_where == "") {
         					$sql_where .= "dtb_customer.email ILIKE ? ";
         				} else {
         					$sql_where .= "OR dtb_customer.email ILIKE ? " ;
-        				}
-        			} else {
-        				if($sql_where == "") {
-        					$sql_where .= "dtb_customer.email NOT ILIKE ? ";
-        				} else {
-        					$sql_where .= "AND dtb_customer.email NOT ILIKE ? " ;
         				}
         			}
