From 3a32590b7f5d95653fd2e6e027c24fc57bfb95dc Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 1 Aug 2005 22:48:47 +0000 Subject: [PATCH] Correctly fill in mac address Ticket #281 --- usr/local/www/services_dhcp_edit.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index 63d1c9888d..5a221f888a 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) {