Fixed bug when deleting domain
This commit is contained in:
parent
0ed2a3dfa1
commit
3ce4af18af
|
@ -108,6 +108,11 @@ if(isset($input->action) && $input->action == "deleteDomain") {
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$stmt->close();
|
$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 = $db->prepare("DELETE FROM records WHERE domain_id=?");
|
||||||
$stmt->bind_param("i", $domainId);
|
$stmt->bind_param("i", $domainId);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
Loading…
Reference in a new issue