diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-07-13 21:23:15 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-07-13 21:23:15 +0000 |
commit | 1d05355c66f1daa8ad63cefdc2d657cf6ba32e65 (patch) | |
tree | c93ac7ee961d16b7f11752cc6a434e77ca8d683e /usr/local/www/firewall_nat_1to1_edit.php | |
parent | 14972c9a867b4a4c6ff326a4e877bcd7c8b82886 (diff) | |
download | pfsense-1d05355c66f1daa8ad63cefdc2d657cf6ba32e65.zip pfsense-1d05355c66f1daa8ad63cefdc2d657cf6ba32e65.tar.gz |
Do not create nested function this seems to upset php for some reason.
Diffstat (limited to 'usr/local/www/firewall_nat_1to1_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_1to1_edit.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/firewall_nat_1to1_edit.php b/usr/local/www/firewall_nat_1to1_edit.php index 466e451..eaa14a9 100755 --- a/usr/local/www/firewall_nat_1to1_edit.php +++ b/usr/local/www/firewall_nat_1to1_edit.php @@ -36,15 +36,16 @@ ##|*MATCH=firewall_nat_1to1_edit.php* ##|-PRIV +function nat1to1cmp($a, $b) { + return ipcmp($a['external'], $b['external']); +} + function nat_1to1_rules_sort() { global $g, $config; if (!is_array($config['nat']['onetoone'])) return; - function nat1to1cmp($a, $b) { - return ipcmp($a['external'], $b['external']); - } usort($config['nat']['onetoone'], "nat1to1cmp"); } |