From 2d2e7d9a7592081ae23d6761edb4f5591eb613fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 28 Apr 2009 08:16:50 +0000 Subject: Add check for existing array. --- config/igmpproxy/igmpproxy.inc | 3 +++ 1 file changed, 3 insertions(+) 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']); -- cgit v1.2.3