diff options
author | Daniel Hoffend <dh@dotlan.net> | 2014-04-08 01:25:21 +0200 |
---|---|---|
committer | Daniel Hoffend <dh@dotlan.net> | 2014-04-08 01:25:21 +0200 |
commit | 4c345b9e7743f4e89875bdf518ea0b0fdf804940 (patch) | |
tree | cc34892afdf66dd55e36044397f6b5efd9db59da /config | |
parent | 641a91856da66f45a68226141958f46d8460c4b7 (diff) | |
download | pfsense-packages-4c345b9e7743f4e89875bdf518ea0b0fdf804940.tar.gz pfsense-packages-4c345b9e7743f4e89875bdf518ea0b0fdf804940.tar.bz2 pfsense-packages-4c345b9e7743f4e89875bdf518ea0b0fdf804940.zip |
changed check for config parameter to is_array
Diffstat (limited to 'config')
-rw-r--r-- | config/quagga_ospfd/quagga_ospfd.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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" ; |