summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-06 21:14:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-06 21:14:53 +0000
commit2fe54e179712f91607b881854b5bec97b868dfb2 (patch)
treea8545c000e72333531818c85189367a7d9817efe
parentbc5dc42181e4b6d468bfcd1283f923e744524371 (diff)
downloadpfsense-2fe54e179712f91607b881854b5bec97b868dfb2.zip
pfsense-2fe54e179712f91607b881854b5bec97b868dfb2.tar.gz
Do not iterate through an item unless it exists
-rw-r--r--etc/inc/openvpn.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 8d1c454..ee151f4 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -82,6 +82,7 @@ function ovpn_unlink_tap() {
function ovpn_config_server($reconfigure) {
global $config, $g, $d_ovpnsrvdirty_path;
+ if($config['ovpn']['server']['tunnel'])
foreach ($config['ovpn']['server']['tunnel'] as $id => $server) {
/* get tunnel interface */
$tun = $server['tun_iface'];
@@ -1483,4 +1484,4 @@ function ovpn_unlock() {
unlink($lockfile);
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud