aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tinydns')
-rw-r--r--packages/tinydns/tinydns.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 4cb8268d..9c2580de 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -364,7 +364,8 @@ function tinydns_create_zone_file() {
}
if($config['installedpackages']['tinydnsdomains']) {
- foreach($config['installedpackages']['tinydnsdomains']['config'] as $domain) {
+ for($x=0; $x< count($config['installedpackages']['tinydnsdomains']['config']); $x++) {
+ $domain = $config['installedpackages']['tinydnsdomains']['config'][$x];
$record_data = "";
$hostname = $domain['hostname'];
$ipaddress = $domain['ipaddress'];