dyndns: invert logic in type select selection

This commit is contained in:
Franco Fichtner 2016-06-09 20:00:38 +02:00
parent 304e2c3dc5
commit 65f074b64f

View File

@ -245,7 +245,7 @@ include("head.inc");
<select name="type" class="selectpicker" id="type" onchange="_onTypeChange(this.options[this.selectedIndex].value);">
<?php
foreach (services_dyndns_list() as $value => $type):?>
<option value="<?= $value ?>" <?= $value == $pconfig['type'] ? '' : 'selected="selected"'?>>
<option value="<?= $value ?>" <?= $value == $pconfig['type'] ? 'selected="selected"' : '' ?>>
<?= $type ?>
</option>
<?php