summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-05-16 15:52:56 -0400
committerjim-p <jimp@pfsense.org>2013-05-16 15:52:56 -0400
commit37c922a6faff0e55db04fb66e43b76180e1c1449 (patch)
tree6069a9ca653e3ca921ce3d3aa32b513793f5b0e3 /usr/local/www/services_dhcp_edit.php
parent5b23c83db0886e60e7a6b8c18f85b6ecf7cc1044 (diff)
downloadpfsense-37c922a6faff0e55db04fb66e43b76180e1c1449.zip
pfsense-37c922a6faff0e55db04fb66e43b76180e1c1449.tar.gz
Don't stomp on this variable or data loss can occur (disappearing static mappings)
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 6e81277..a66a360 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -188,7 +188,7 @@ if ($_POST) {
$input_errors[] = sprintf(gettext("The IP address must not be within the DHCP range for this interface."));
}
- foreach ($a_pools as $id => $p) {
+ foreach ($a_pools as $pidx => $p) {
if (is_inrange_v4($_POST['ipaddr'], $p['range']['from'], $p['range']['to'])) {
$input_errors[] = gettext("The IP address must not be within the range configured on a DHCP pool for this interface.");
break;
OpenPOWER on IntegriCloud