shenzhipeng 3 лет назад
Родитель
Сommit
7b95647248
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      application/module/ctrl/Sms_customer_list_adminAction.class.php

+ 3 - 2
application/module/ctrl/Sms_customer_list_adminAction.class.php

@@ -41,8 +41,9 @@ class Sms_customer_list_adminAction extends Action{
 		$tel = trim($_REQUEST['tel']);
 		$group_name = $_REQUEST['group_name'];
 
-		
-		$where.=" and tel='$tel'";
+		if(!empty($tel)) {
+			$where.=" and tel='$tel'";
+		}
 		
 
 		if(!empty($group_name)){