diff options
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index 2430dea..9ef4ab9 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -36,13 +36,13 @@ ##|*MATCH=services_dhcp_edit.php* ##|-PRIV +function staticmapcmp($a, $b) { + return ipcmp($a['ipaddr'], $b['ipaddr']); +} + function staticmaps_sort($ifgui) { global $g, $config; - function staticmapcmp($a, $b) { - return ipcmp($a['ipaddr'], $b['ipaddr']); - } - usort($config['dhcpd'][$ifgui]['staticmap'], "staticmapcmp"); } |