Only display when it is not set to the default setting.

This commit is contained in:
Tony Murray
2016-06-12 21:36:04 -05:00
parent 55f8576973
commit 173336c76b

View File

@@ -92,7 +92,7 @@ echo "
</select>
</div>
<div class='col-sm-2'>
<input type='text' name='port' placeholder='port' class='form-control input-sm' value='".($device['port'] ?: "")."'>
<input type='text' name='port' placeholder='port' class='form-control input-sm' value='".($device['port'] == $config['snmp']['port'] ? "" : $device['port'])."'>
</div>
<div class='col-sm-1'>
<select name='transport' id='transport' class='form-control input-sm'>";