summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_1to1_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-07-13 21:23:15 +0000
committerErmal Luçi <eri@pfsense.org>2009-07-13 21:23:15 +0000
commit1d05355c66f1daa8ad63cefdc2d657cf6ba32e65 (patch)
treec93ac7ee961d16b7f11752cc6a434e77ca8d683e /usr/local/www/firewall_nat_1to1_edit.php
parent14972c9a867b4a4c6ff326a4e877bcd7c8b82886 (diff)
downloadpfsense-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-xusr/local/www/firewall_nat_1to1_edit.php7
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");
}
OpenPOWER on IntegriCloud