diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-01-09 17:37:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-01-09 17:37:14 +0000 |
commit | 3955baf1f6fd6aca9d22e01b20322850def3a8a0 (patch) | |
tree | 7ebc1fc248b0b73e362615986c6bd504ae33967a /usr/local/www | |
parent | 428d20c4c09de345c1715144a2bf5466486f183b (diff) | |
download | pfsense-3955baf1f6fd6aca9d22e01b20322850def3a8a0.zip pfsense-3955baf1f6fd6aca9d22e01b20322850def3a8a0.tar.gz |
* Do not show the same error message 2+ times (in this case 60)
* Show the correct ip address that we are comparing it to
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index 3e5f445..6dfe9d3 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -93,6 +93,7 @@ if ($_POST) { if($svr[1] == $pconfig['gateway']) { $_POST['gateway'] = $pconfig['gateway']; $input_errors[] = "Cannot change {$svr[1]} gateway. It is currently referenced by the load balancer pools."; + break; } } } @@ -100,7 +101,8 @@ if ($_POST) { foreach($config['filter']['rule'] as $rule) { if($rule['gateway'] == $pconfig['gateway']) { $_POST['gateway'] = $pconfig['gateway']; - $input_errors[] = "Cannot change {$svr[1]} gateway. It is currently referenced by the filter rules via policy based routing."; + $input_errors[] = "Cannot change {$_POST['gateway']} gateway. It is currently referenced by the filter rules via policy based routing."; + break; } } } |