From 49cb08d14485b939401b211e41a0203539347036 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 18 Jan 2016 23:20:03 +0545 Subject: firewall_nat_1to1 fix save button text There was no text appearing when hovering over the Save button, and Save did not actually save the changed rule order. Make the code the same sort of stuff as in firewall_nat and it works. --- src/usr/local/www/firewall_nat_1to1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www/firewall_nat_1to1.php') diff --git a/src/usr/local/www/firewall_nat_1to1.php b/src/usr/local/www/firewall_nat_1to1.php index 0683c92..f336433 100644 --- a/src/usr/local/www/firewall_nat_1to1.php +++ b/src/usr/local/www/firewall_nat_1to1.php @@ -75,7 +75,7 @@ if (!is_array($config['nat']['onetoone'])) { $a_1to1 = &$config['nat']['onetoone']; /* update rule order, POST[rule] is an array of ordered IDs */ -if ($_POST['order-store']) { +if (array_key_exists('order-store', $_POST)) { if (is_array($_POST['rule']) && !empty($_POST['rule'])) { $a_1to1_new = array(); @@ -273,7 +273,7 @@ display_top_tabs($tab_array); - -- cgit v1.1