aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-04-28 08:16:50 +0000
committerErmal Luçi <eri@pfsense.org>2009-04-28 08:16:50 +0000
commit2d2e7d9a7592081ae23d6761edb4f5591eb613fe (patch)
tree8a7df5f53be1639a28dfa3c0f76ed70a9a6aa728
parent8afb94d31c373cf87b289d26ac70b58e91f5178c (diff)
downloadpfsense-packages-2d2e7d9a7592081ae23d6761edb4f5591eb613fe.tar.gz
pfsense-packages-2d2e7d9a7592081ae23d6761edb4f5591eb613fe.tar.bz2
pfsense-packages-2d2e7d9a7592081ae23d6761edb4f5591eb613fe.zip
Add check for existing array.
-rw-r--r--config/igmpproxy/igmpproxy.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/igmpproxy/igmpproxy.inc b/config/igmpproxy/igmpproxy.inc
index 4f167a54..4d0211b0 100644
--- a/config/igmpproxy/igmpproxy.inc
+++ b/config/igmpproxy/igmpproxy.inc
@@ -50,6 +50,9 @@ quickleave
EOD;
+ if (!is_array($config['installedpackages']['igmpproxy']['config']))
+ return 0;
+
$igmpcfg =& $config['installedpackages']['igmpproxy']['config'];
foreach ($igmpcfg as $igmpcf) {
$realif = convert_friendly_interface_to_real_interface_name($igmpcf['igmpname']);