Commit 65cbcd5e authored by Franco Fichtner's avatar Franco Fichtner

openvpn: fix auth server translation for #467

(cherry picked from commit 89c689b7)
parent 0a4d14ff
......@@ -784,17 +784,14 @@ function tuntap_change() {
$authmodes = array();
}
$auth_servers = auth_get_authserver_list();
foreach ($auth_servers as $auth_server) :
foreach ($auth_servers as $auth_key => $auth_server) :
$selected = "";
if (in_array($auth_server['name'], $authmodes)) {
$selected = "selected=\"selected\"";
}
?>
<option value="<?=htmlspecialchars($auth_server['name']);
?>" <?=$selected;
?>><?=htmlspecialchars($auth_server['name']);?></option>
<?php
endforeach; ?>
<option value="<?=htmlspecialchars($auth_key); ?>" <?=$selected; ?>><?=htmlspecialchars($auth_server['name']);?></option>
<?php endforeach; ?>
</select>
</td>
</tr>
......
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