stop SQL error, when using account-type with name2id($name, "person_id", "u")

This commit is contained in:
Ralf Becker 2021-02-26 21:57:11 +02:00
parent a2efa8069c
commit a41865209c

View File

@ -613,7 +613,7 @@ class Sql
unset($where['account_lid']); unset($where['account_lid']);
} }
} }
if ($account_type) if ($account_type && $table !== $this->contacts_table)
{ {
$where['account_type'] = $account_type; $where['account_type'] = $account_type;
} }