From 4fbdb80faff1475c5073dc052632e1ae244d9154 Mon Sep 17 00:00:00 2001 From: "Christoph Burchert (Chb)" Date: Wed, 19 Oct 2011 10:04:50 +0200 Subject: [PATCH] Minor fix Signed-off-by: Christoph Burchert (Chb) --- scripts/jobs/cron_tasks.inc.dns.10.bind.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jobs/cron_tasks.inc.dns.10.bind.php b/scripts/jobs/cron_tasks.inc.dns.10.bind.php index d15e9c34..82ee065f 100644 --- a/scripts/jobs/cron_tasks.inc.dns.10.bind.php +++ b/scripts/jobs/cron_tasks.inc.dns.10.bind.php @@ -296,7 +296,7 @@ class bind $zonefile.= str_replace('www.' . $domain['domain'], '', $subdomain['domain']) . ' IN A ' . $subdomain['ip'] . "\n"; } } - else + elseif(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) { $zonefile.= str_replace('.' . $domain['domain'], '', $subdomain['domain']) . ' IN AAAA ' . $subdomain['ip'] . "\n";