From 90dc86b5a66cbd5915a73c5a334c57dad0fdb1f9 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 21 Dec 2009 00:28:56 -0500 Subject: allow unlimited gateways to have a blank monitor IP (i.e. monitor IP == gateway IP) --- usr/local/www/system_gateways_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 5f169d1..170f071 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -118,7 +118,7 @@ if ($_POST) { $input_errors[] = "The gateway IP address \"{$_POST['gateway']}\" already exists."; break; } - if (($gateway['monitor'] <> "") && (in_array($_POST['monitor'], $gateway)) && ($gateway['attribute'] != "system")) { + if (($gateway['monitorip'] <> "") && (in_array($_POST['monitor'], $gateway)) && ($gateway['attribute'] != "system")) { $input_errors[] = "The monitor IP address \"{$_POST['monitor']}\" is already in use. You must choose a different monitor IP."; break; } -- cgit v1.1