mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not process items if it's not an array
This commit is contained in:
parent
1132ff91ec
commit
5c4eeffbbb
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user