Do not process items if it's not an array

This commit is contained in:
Scott Ullrich 2005-10-12 20:41:01 +00:00
parent 1132ff91ec
commit 5c4eeffbbb

View File

@ -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'];