diff --git a/api/domains.php b/api/domains.php index 559ea59..4e67d6d 100644 --- a/api/domains.php +++ b/api/domains.php @@ -91,7 +91,7 @@ if(isset($input->action) && $input->action == "getDomains") { LEFT OUTER JOIN records R ON D.id = R.domain_id LEFT OUTER JOIN permissions P ON D.id = P.domain WHERE (P.user=? OR ?) - GROUP BY D.id + GROUP BY D.id, D.name, D.type HAVING (D.name LIKE ? OR ?) AND (D.type=? OR ?)