diff --git a/api/src/Contacts/Sql.php b/api/src/Contacts/Sql.php index 65b1eb6982..0714ea806b 100644 --- a/api/src/Contacts/Sql.php +++ b/api/src/Contacts/Sql.php @@ -1165,7 +1165,7 @@ class Sql extends Api\Storage } 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__); }