aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-11 20:13:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-11 20:13:37 +0000
commit2bdae8ea82ee1a5039b4bd7b8e480c7fbc01f537 (patch)
tree13cb58f7ed944b825f3bbfb939d510f559650561
parente53954fb771a928a8872cca939a526d76c28eddc (diff)
downloadpfsense-packages-2bdae8ea82ee1a5039b4bd7b8e480c7fbc01f537.tar.gz
pfsense-packages-2bdae8ea82ee1a5039b4bd7b8e480c7fbc01f537.tar.bz2
pfsense-packages-2bdae8ea82ee1a5039b4bd7b8e480c7fbc01f537.zip
Use for() instead of foreach() inside a foreach() which ends up sending
php to LaLa land.
-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'];