summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-07-08 19:35:11 -0400
committerjim-p <jim@pingle.org>2009-07-08 19:35:11 -0400
commitf28a9efd046aec9e6a39cb7d8d73fbea5e9d1061 (patch)
tree201d50a1d93eaa490f0473447a2d5cabc7a32f41 /usr
parent09d80b1c779994a138a9b93fdad829869242f14f (diff)
downloadpfsense-f28a9efd046aec9e6a39cb7d8d73fbea5e9d1061.zip
pfsense-f28a9efd046aec9e6a39cb7d8d73fbea5e9d1061.tar.gz
Fix error when attempting to add a DHCP static mapping. Fixes #29
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php8
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");
}
OpenPOWER on IntegriCloud