diff options
-rwxr-xr-x | usr/local/www/system_gateway_groups_edit.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/system_gateway_groups_edit.php b/usr/local/www/system_gateway_groups_edit.php index a17cd94..a3a8186 100755 --- a/usr/local/www/system_gateway_groups_edit.php +++ b/usr/local/www/system_gateway_groups_edit.php @@ -110,6 +110,9 @@ if ($_POST) { /* we have a priority above 0 (disabled), add item to list */ $pconfig['item'][] = "{$gwname}|{$_POST[$gwname]}"; } + /* check for overlaps */ + if ($_POST['name'] == $gwname) + $input_errors[] = sprintf(gettext('A gateway group cannot have the same name with a gateway "%s" please choose another name.'), $_POST['name']); } if(count($pconfig['item']) == 0) { |