diff --git a/api/src/Accounts/Sql.php b/api/src/Accounts/Sql.php index 31b28473ba..a73f494a03 100644 --- a/api/src/Accounts/Sql.php +++ b/api/src/Accounts/Sql.php @@ -613,7 +613,7 @@ class Sql unset($where['account_lid']); } } - if ($account_type) + if ($account_type && $table !== $this->contacts_table) { $where['account_type'] = $account_type; }