Commit 0441cf4c authored by Ad Schellevis's avatar Ad Schellevis
parent ac00e7f3
......@@ -37,8 +37,7 @@ if (empty($config['wol']['wolentry']) || !is_array($config['wol']['wolentry']))
$a_wol = &$config['wol']['wolentry'];
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// delete entry
if (isset($_POST['act']) && $_POST['act'] == "del" && isset($_POST['id'])) {
if (!empty($a_wol[$_POST['id']])) {
......@@ -171,7 +170,7 @@ include("head.inc");
$if = null;
}
foreach (get_configured_interface_with_descr() as $iface => $ifacename): ?>
<option value="<?=$iface;?>" <?=!link_interface_to_bridge($iface) && $iface == $if ? "selected=\"selected\"" : ""; ?>>
<option value="<?=$iface;?>" <?=$iface == $if ? "selected=\"selected\"" : ""; ?>>
<?=htmlspecialchars($ifacename);?>
</option>
<?php
......
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