Commit fa981247 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Fix : Delete contact if not an user

parent 30c397a2
......@@ -66,7 +66,10 @@ Class Purge{
$this->db->deleteUnitIdentifier($resId);
$this->purgeResource($resId);
$this->purgeContact($letter->contact_id);
if ($letter->contact_id) {
$this->purgeContact($letter->contact_id);
}
$unitIdentifiers = $this->db->getUnitIdentifierByMessageId($message->message_id);
if (!$unitIdentifiers) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment