* Addressbook/PostgreSQL: fix SQL error deleting a contact finally

This commit is contained in:
Ralf Becker 2021-09-01 09:33:54 +02:00
parent 8c6fea66ca
commit 73301e9276

View File

@ -1165,7 +1165,7 @@ class Sql extends Api\Storage
} }
elseif (!isset($keys['contact_id'])) elseif (!isset($keys['contact_id']))
{ {
$query = parent::delete($keys,true); $query = ['contact_id' => parent::delete($keys,true)];
} }
$this->db->delete(self::SHARED_TABLE, $query ?? $keys, __LINE__, __FILE__); $this->db->delete(self::SHARED_TABLE, $query ?? $keys, __LINE__, __FILE__);
} }