openvpn: compare correct value here as well for #467

This commit is contained in:
Franco Fichtner 2015-11-18 08:34:18 +01:00
parent 89c689b7f6
commit 735d0beda5

View File

@ -778,7 +778,7 @@ function tuntap_change() {
$auth_servers = auth_get_authserver_list();
foreach ($auth_servers as $auth_key => $auth_server) :
$selected = "";
if (in_array($auth_server['name'], $authmodes)) {
if (in_array($auth_key, $authmodes)) {
$selected = "selected=\"selected\"";
}
?>