do not add task 11 (delete domain from pdns db) if namserver is disabled and dns-server is not PowerDNS

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-02-09 11:56:15 +01:00
parent 21f9a24780
commit 8448a7141a

View File

@@ -169,7 +169,8 @@ class Cronjob
'type' => '8',
'data' => $data
));
} elseif ($type == '11' && $param1 != '') {
} elseif ($type == '11' && $param1 != '' && Settings::Get('system.bind_enable') == '1' && Settings::Get('system.dns_server') == 'PowerDNS') {
// -> if bind disabled or dns-server not PowerDNS -> no task
$data = array();
$data['domain'] = $param1;
$data = json_encode($data);