diff options
author | jim-p <jim@pingle.org> | 2009-07-08 19:35:11 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-07-08 19:35:11 -0400 |
commit | f28a9efd046aec9e6a39cb7d8d73fbea5e9d1061 (patch) | |
tree | 201d50a1d93eaa490f0473447a2d5cabc7a32f41 /usr | |
parent | 09d80b1c779994a138a9b93fdad829869242f14f (diff) | |
download | pfsense-f28a9efd046aec9e6a39cb7d8d73fbea5e9d1061.zip pfsense-f28a9efd046aec9e6a39cb7d8d73fbea5e9d1061.tar.gz |
Fix error when attempting to add a DHCP static mapping. Fixes #29
Diffstat (limited to 'usr')
-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"); } |