diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-29 17:23:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-29 17:23:30 +0000 |
commit | 1220098c2956ab7fc4231df3e367536b78473f56 (patch) | |
tree | 405f346cb2a4a2b833b787a690d95a7f7fe653ba /packages | |
parent | b2f21ab0087369d790940d67779938afc0a3d179 (diff) | |
download | pfsense-packages-1220098c2956ab7fc4231df3e367536b78473f56.tar.gz pfsense-packages-1220098c2956ab7fc4231df3e367536b78473f56.tar.bz2 pfsense-packages-1220098c2956ab7fc4231df3e367536b78473f56.zip |
Check to see if item is an array before enumerating
Diffstat (limited to 'packages')
-rw-r--r-- | packages/tinydns/tinydns_status.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php index 24c8d419..db9e85dc 100644 --- a/packages/tinydns/tinydns_status.php +++ b/packages/tinydns/tinydns_status.php @@ -80,6 +80,7 @@ if(file_exists("/service/tinydns/root/data")) $tinydns_data = file_get_contents("/service/tinydns/root/data"); else $tinydns_data = ""; +if($config['installedpackages']['tinydnsdomains']) foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) { if($ping['recordtype'] == "SOA") continue; |