From 1220098c2956ab7fc4231df3e367536b78473f56 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 29 Apr 2007 17:23:30 +0000 Subject: Check to see if item is an array before enumerating --- packages/tinydns/tinydns_status.php | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/tinydns/tinydns_status.php') 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; -- cgit v1.2.3