summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_gateways_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index 08f04e9..d1fcd30 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -129,6 +129,8 @@ if ($_POST) {
/* check for overlaps */
foreach ($a_gateways as $gateway) {
if (isset($id) && ($a_gateways[$id]) && ($a_gateways[$id] === $gateway)) {
+ if ($gateway['name'] != $_POST['name'])
+ $input_errors[] = gettext("Changing name on a gateway is not allowed because it can leave stale gateways around.");
continue;
}
if($_POST['name'] <> "") {
OpenPOWER on IntegriCloud