diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php index 659fb84227..bf5211b93f 100644 --- a/src/usr/local/www/system_gateways_edit.php +++ b/src/usr/local/www/system_gateways_edit.php @@ -850,12 +850,12 @@ events.push(function() { 1) || - (isset($pconfig['interval']) && !($pconfig['interval'] == $dpinger_default['interval'])) || - (isset($pconfig['loss_interval']) && !($pconfig['loss_interval'] == $dpinger_default['loss_interval'])) || - (isset($pconfig['time_period']) && !($pconfig['time_period'] == $dpinger_default['time_period'])) || - (isset($pconfig['alert_interval']) && !($pconfig['alert_interval'] == $dpinger_default['alert_interval'])) || - (isset($pconfig['nonlocalgateway']) && $pconfig['nonlocalgateway']))) { + (!empty($pconfig['weight']) && $pconfig['weight'] > 1) || + (!empty($pconfig['interval']) && !($pconfig['interval'] == $dpinger_default['interval'])) || + (!empty($pconfig['loss_interval']) && !($pconfig['loss_interval'] == $dpinger_default['loss_interval'])) || + (!empty($pconfig['time_period']) && !($pconfig['time_period'] == $dpinger_default['time_period'])) || + (!empty($pconfig['alert_interval']) && !($pconfig['alert_interval'] == $dpinger_default['alert_interval'])) || + (!empty($pconfig['nonlocalgateway']) && $pconfig['nonlocalgateway']))) { $showadv = false; } else { $showadv = true;