summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-12 20:41:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-12 20:41:01 +0000
commit5c4eeffbbb6d7e025f56417efe8a05ad1eb8d457 (patch)
treede355593b5710ad52a6f5a9e3b514791b1facde0 /etc/inc
parent1132ff91ec856f1cb2be0c2de453060a7003fed3 (diff)
downloadpfsense-5c4eeffbbb6d7e025f56417efe8a05ad1eb8d457.zip
pfsense-5c4eeffbbb6d7e025f56417efe8a05ad1eb8d457.tar.gz
Do not process items if it's not an array
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/openvpn.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 1036f31..2ba1068 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -89,6 +89,8 @@ function ovpn_unlink_tap() {
function ovpn_config_server($reconfigure) {
global $config, $g, $d_ovpnsrvdirty_path;
+ if(!is_array($config['ovpn']['server']['tunnel']))
+ return;
foreach ($config['ovpn']['server']['tunnel'] as $id => $server) {
/* get tunnel interface */
$tun = $server['tun_iface'];
OpenPOWER on IntegriCloud