Browse Source

Update domains.php

FusionPBX 6 years ago
parent
commit
89ef077940
1 changed files with 3 additions and 2 deletions
  1. 3 2
      core/domain_settings/domains.php

+ 3 - 2
core/domain_settings/domains.php

@@ -143,9 +143,10 @@
 //get the domains
 //get the domains
 	$sql = "select * from v_domains ";
 	$sql = "select * from v_domains ";
 	if (strlen($search) > 0) {
 	if (strlen($search) > 0) {
+		$search = strtolower($search);
 		$sql .= "where (";
 		$sql .= "where (";
-		$sql .= "	domain_name like '%".$search."%' ";
-		$sql .= "	or domain_description like '%".$search."%' ";
+		$sql .= "	lower(domain_name) like '%".$search."%' ";
+		$sql .= "	or lower(domain_description) like '%".$search."%' ";
 		$sql .= ") ";
 		$sql .= ") ";
 	}
 	}
 	if (strlen($order_by) == 0) {
 	if (strlen($order_by) == 0) {