Commit 3fe40748 authored by Franco Fichtner's avatar Franco Fichtner

www: fix OpenVPN iteration (just how many are there??)

parent 7dfa6d44
......@@ -44,7 +44,7 @@ $ifdescrs = get_configured_interface_with_descr();
if (isset($config['ipsec']['enable']))
$ifdescrs['enc0'] = "IPsec";
foreach (array('server', 'client') as $mode) {
if (is_array($config['openvpn']["openvpn-{$mode}"])) {
if (isset($config['openvpn']["openvpn-{$mode}"])) {
foreach ($config['openvpn']["openvpn-{$mode}"] as $id => $setting) {
if (!isset($setting['disable'])) {
$ifdescrs['ovpn' . substr($mode, 0, 1) . $setting['vpnid']] = gettext("OpenVPN") . " ".$mode.": ".htmlspecialchars($setting['description']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment