From a41865209ce9176f70aaccc864146d24bc8354d4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 26 Feb 2021 21:57:11 +0200 Subject: [PATCH] stop SQL error, when using account-type with name2id($name, "person_id", "u") --- api/src/Accounts/Sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }