Skip to content

Commit 06111e8

Browse files
committed
Fix warnings in BIND plugin.
1 parent ad241d9 commit 06111e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/plugins-available/bind_plugin.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,11 +548,11 @@ function write_named_conf($data, $dns_config) {
548548
if ($tmp['dnssec_wanted'] == 'Y') $zone_file .= '.signed'; //.signed is for DNSSEC-Implementation
549549

550550
$options = '';
551-
if(trim($tmp['xfer']) != '') {
551+
if($tmp['xfer'] != null && trim($tmp['xfer']) != '') {
552552
$options .= " allow-transfer {".str_replace(',', ';', $tmp['xfer']).";};\n";
553553
}
554-
if(trim($tmp['also_notify']) != '') $options .= ' also-notify {'.str_replace(',', ';', $tmp['also_notify']).";};\n";
555-
if(trim($tmp['update_acl']) != '') $options .= " allow-update {".str_replace(',', ';', $tmp['update_acl']).";};\n";
554+
if($tmp['also_notify'] != null && trim($tmp['also_notify']) != '') $options .= ' also-notify {'.str_replace(',', ';', $tmp['also_notify']).";};\n";
555+
if($tmp['update_acl'] != null && trim($tmp['update_acl']) != '') $options .= " allow-update {".str_replace(',', ';', $tmp['update_acl']).";};\n";
556556

557557
if(file_exists($zone_file)) {
558558
$zones[] = array( 'zone' => substr($tmp['origin'], 0, -1),

0 commit comments

Comments
 (0)