diff --git a/api/domains.php b/api/domains.php index f30ffb2..c3e23fe 100644 --- a/api/domains.php +++ b/api/domains.php @@ -35,7 +35,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 ?)