Index: /branches/dev/data/class/SC_CustomerList.php
===================================================================
--- /branches/dev/data/class/SC_CustomerList.php	(revision 12526)
+++ /branches/dev/data/class/SC_CustomerList.php	(revision 12527)
@@ -210,16 +210,33 @@
             	if($domain == 2) {
 	            	foreach($arrDomainType as $val) {
-	        		    if($this->arrSql['mail_type'] == 1 ){
-	            	        if($sql_where == "") {
-        		    		$sql_where .= "dtb_customer.email NOT ILIKE ? ";
-        		    	    } else {
-            	            $sql_where .= "AND dtb_customer.email NOT LIKE ? " ;
-        		    	    }
-	        	    	} else {
-	        		        if($sql_where == "") {
-        		    		$sql_where .= "dtb_customer.email_mobile NOT ILIKE ? ";
-        		    	    } else {
-            	            $sql_where .= "AND dtb_customer.email_mobile NOT LIKE ? " ;
-        		    	    }
+	            		switch($this->arrSql['mail_type']){
+	            			case '1':
+	            			    if($sql_where == "") {
+        		    		        $sql_where .= "dtb_customer.email NOT ILIKE ? ";
+        		    	        } else {
+            	                    $sql_where .= "AND dtb_customer.email NOT LIKE ? " ;
+        		    	        }
+        		    	        break;
+        		    	    case '2':
+        		    	        if($sql_where == "") {
+        		    		        $sql_where .= "dtb_customer.email_mobile NOT ILIKE ? ";
+        		    	        } else {
+            	                    $sql_where .= "AND dtb_customer.email_mobile NOT LIKE ? " ;
+        		    	        }
+        		    	        break;
+        		    	    default:
+        		    	        $sql_where ="";
+//	        		    if($this->arrSql['mail_type'] == 1 ){
+//	            	        if($sql_where == "") {
+//        		    		$sql_where .= "dtb_customer.email NOT ILIKE ? ";
+//        		    	    } else {
+//            	            $sql_where .= "AND dtb_customer.email NOT LIKE ? " ;
+//        		    	    }
+//	        	    	} else {
+//	        		        if($sql_where == "") {
+//        		    		$sql_where .= "dtb_customer.email_mobile NOT ILIKE ? ";
+//        		    	    } else {
+//            	            $sql_where .= "AND dtb_customer.email_mobile NOT LIKE ? " ;
+//        		    	    }
 	        		    }
 		        	    $searchDomain = $this->addSearchStr($val);
