Project

General

Profile

« Previous | Next » 

Revision f28a9efd

Added by Jim Pingle almost 16 years ago

Fix error when attempting to add a DHCP static mapping. Fixes #29

View differences:

usr/local/www/services_dhcp_edit.php
36 36
##|*MATCH=services_dhcp_edit.php*
37 37
##|-PRIV
38 38

  
39
function staticmapcmp($a, $b) {
40
        return ipcmp($a['ipaddr'], $b['ipaddr']);
41
}
42

  
39 43
function staticmaps_sort($ifgui) {
40 44
        global $g, $config;
41 45

  
42
        function staticmapcmp($a, $b) {
43
                return ipcmp($a['ipaddr'], $b['ipaddr']);
44
        }
45

  
46 46
        usort($config['dhcpd'][$ifgui]['staticmap'], "staticmapcmp");
47 47
}
48 48

  

Also available in: Unified diff