Index: /branches/dev/data/class/SC_CustomerList.php
===================================================================
--- /branches/dev/data/class/SC_CustomerList.php	(revision 12528)
+++ /branches/dev/data/class/SC_CustomerList.php	(revision 12529)
@@ -234,15 +234,17 @@
             	if($domain == 3) {
 	            	foreach($arrDomainType as $val) { 
-	        		    if($this->arrSql['mail_type'] == 1 ){
-	            	        if($sql_where == "") {
-        		    		$sql_where .= "dtb_customer.email ILIKE ? ";
-        		    	    } else {
-            	            $sql_where .= "OR dtb_customer.email LIKE ? " ;
-        		    	    }
-	        	    	}else{
-	        		        if($sql_where == "") {
-        		    		$sql_where .= "dtb_customer.email_mobile ILIKE ? ";
-        		    	    } else {
-            	            $sql_where .= "OR dtb_customer.email_mobile LIKE ? " ;
+	        		    switch($this->arrSql['mail_type']){
+	        		    	case '1':
+	            	            if($sql_where == "") {
+        		    		        $sql_where .= "dtb_customer.email ILIKE ? ";
+        		    	        } else {
+            	                    $sql_where .= "OR dtb_customer.email LIKE ? " ;
+        		    	        }
+        		    	        break;
+	        	    	    case '2':
+	        		            if($sql_where == "") {
+        		    		        $sql_where .= "dtb_customer.email_mobile ILIKE ? ";
+        		    	        } else {
+            	                    $sql_where .= "OR dtb_customer.email_mobile LIKE ? " ;
         		    	    }
 	        		    }
