diff options
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index 63d1c98..5a221f8 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -53,9 +53,11 @@ if (isset($_POST['id'])) $id = $_POST['id']; if (isset($id) && $a_maps[$id]) { - $pconfig['mac'] = $a_maps[$id]['mac']; - $pconfig['ipaddr'] = $a_maps[$id]['ipaddr']; - $pconfig['descr'] = $a_maps[$id]['descr']; + $pconfig['mac'] = $a_maps[$id]['mac']; + $pconfig['ipaddr'] = $a_maps[$id]['ipaddr']; + $pconfig['descr'] = $a_maps[$id]['descr']; +} else { + $pconfig['mac'] = $_GET['mac']; } if ($_POST) { |