Skip to content
Snippets Groups Projects
Commit 06111e8d authored by Till's avatar Till
Browse files

Fix warnings in BIND plugin.

parent ad241d95
No related branches found
No related tags found
No related merge requests found
...@@ -548,11 +548,11 @@ class bind_plugin { ...@@ -548,11 +548,11 @@ class bind_plugin {
if ($tmp['dnssec_wanted'] == 'Y') $zone_file .= '.signed'; //.signed is for DNSSEC-Implementation if ($tmp['dnssec_wanted'] == 'Y') $zone_file .= '.signed'; //.signed is for DNSSEC-Implementation
$options = ''; $options = '';
if(trim($tmp['xfer']) != '') { if($tmp['xfer'] != null && trim($tmp['xfer']) != '') {
$options .= " allow-transfer {".str_replace(',', ';', $tmp['xfer']).";};\n"; $options .= " allow-transfer {".str_replace(',', ';', $tmp['xfer']).";};\n";
} }
if(trim($tmp['also_notify']) != '') $options .= ' also-notify {'.str_replace(',', ';', $tmp['also_notify']).";};\n"; if($tmp['also_notify'] != null && trim($tmp['also_notify']) != '') $options .= ' also-notify {'.str_replace(',', ';', $tmp['also_notify']).";};\n";
if(trim($tmp['update_acl']) != '') $options .= " allow-update {".str_replace(',', ';', $tmp['update_acl']).";};\n"; if($tmp['update_acl'] != null && trim($tmp['update_acl']) != '') $options .= " allow-update {".str_replace(',', ';', $tmp['update_acl']).";};\n";
if(file_exists($zone_file)) { if(file_exists($zone_file)) {
$zones[] = array( 'zone' => substr($tmp['origin'], 0, -1), $zones[] = array( 'zone' => substr($tmp['origin'], 0, -1),
......
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