Skip to content
Snippets Groups Projects
Commit 4c842d65 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: FS#3525 - bind dlz plugin

parent 8496f27b
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ class bind_dlz_plugin { ...@@ -188,7 +188,7 @@ class bind_dlz_plugin {
//$_db = clone $app->db; //$_db = clone $app->db;
//$_db->dbName = 'named'; //$_db->dbName = 'named';
$app->db->query("DELETE FROM named.records WHERE ispconfig_id = {$data["old"]["id"]}"); $app->db->query( "DELETE FROM named.dns_records WHERE zone = '".substr($data['old']['origin'], 0, -1)."'");
//unset($_db); //unset($_db);
} }
...@@ -345,7 +345,7 @@ class bind_dlz_plugin { ...@@ -345,7 +345,7 @@ class bind_dlz_plugin {
//$_db = clone $app->db; //$_db = clone $app->db;
//$_db->dbName = 'named'; //$_db->dbName = 'named';
$app->db->query("DELETE FROM named.records WHERE ispconfig_id = {$data["old"]["id"]} AND type != 'SOA'"); $app->db->query( "DELETE FROM named.dns_records WHERE type != 'SOA' AND zone = '".substr($data['old']['origin'], 0, -1)."'");
//unset($_db); //unset($_db);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment