Fixed bug where records where not deleted on domain deletion

This commit is contained in:
Lukas Metzger 2018-03-26 16:54:41 +02:00
parent 827d4d8280
commit 01cd32e27c

View file

@ -186,6 +186,10 @@ class Domains
$query = $this->db->prepare('DELETE FROM domains WHERE id=:id');
$query->bindValue(':id', $id, \PDO::PARAM_INT);
$query->execute();
$query = $this->db->prepare('DELETE FROM records WHERE domain_id=:id');
$query->bindValue(':id', $id, \PDO::PARAM_INT);
$query->execute();
}
/**