From 4c345b9e7743f4e89875bdf518ea0b0fdf804940 Mon Sep 17 00:00:00 2001 From: Daniel Hoffend Date: Tue, 8 Apr 2014 01:25:21 +0200 Subject: changed check for config parameter to is_array --- config/quagga_ospfd/quagga_ospfd.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/quagga_ospfd') diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc index c709381a..17c13246 100644 --- a/config/quagga_ospfd/quagga_ospfd.inc +++ b/config/quagga_ospfd/quagga_ospfd.inc @@ -76,7 +76,7 @@ function quagga_ospfd_install_conf() { $noaccept = ""; // generate ospfd.conf based on the assistant - if($config['installedpackages']['quaggaospfd']['config']) + if(is_array($config['installedpackages']['quaggaospfd']['config'])) $ospfd_conf = &$config['installedpackages']['quaggaospfd']['config'][0]; else { log_error("Quagga OSPFd: No config data found."); @@ -100,7 +100,7 @@ function quagga_ospfd_install_conf() { $passive_interfaces = array(); $interface_networks = array(); - if ($config['installedpackages']['quaggaospfdinterfaces']['config']) { + if (is_array($config['installedpackages']['quaggaospfdinterfaces']['config'])) { foreach ($config['installedpackages']['quaggaospfdinterfaces']['config'] as $conf) { $realif = get_real_interface($conf['interface']); $conffile .= "interface {$realif}\n" ; -- cgit v1.2.3