Fixed bug when deleting domain

This commit is contained in:
Lukas Metzger 2016-02-07 18:48:05 +01:00
parent 0ed2a3dfa1
commit 3ce4af18af

View file

@ -108,6 +108,11 @@ if(isset($input->action) && $input->action == "deleteDomain") {
$stmt->execute();
$stmt->close();
$stmt = $db->prepare("DELETE FROM remote WHERE record IN (SELECT id FROM records WHERE domain_id=?)");
$stmt->bind_param("i", $domainId);
$stmt->execute();
$stmt->close();
$stmt = $db->prepare("DELETE FROM records WHERE domain_id=?");
$stmt->bind_param("i", $domainId);
$stmt->execute();