From 37c922a6faff0e55db04fb66e43b76180e1c1449 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 16 May 2013 15:52:56 -0400 Subject: Don't stomp on this variable or data loss can occur (disappearing static mappings) --- usr/local/www/services_dhcp_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www/services_dhcp_edit.php') 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; -- cgit v1.1