summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/services_dhcp_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index ba5d85e..d44fb9b 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -157,11 +157,11 @@ if ($_POST) {
$mapent['hostname'] = $_POST['hostname'];
$mapent['descr'] = $_POST['descr'];
- staticmaps_sort($if);
if (isset($id) && $a_maps[$id])
$a_maps[$id] = $mapent;
else
$a_maps[] = $mapent;
+ staticmaps_sort($if);
write_config();
OpenPOWER on IntegriCloud