mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-27 16:04:10 +01:00
Fixed bug when deleting domain
This commit is contained in:
parent
0ed2a3dfa1
commit
3ce4af18af
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue