mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
interfaces: selection weirdness for "none" value
This commit is contained in:
parent
a241040662
commit
0c7e9cba15
@ -2512,7 +2512,7 @@ include("head.inc");
|
||||
<select name="dhcp6-ia-pd-len" class="selectpicker" data-style="btn-default" id="dhcp6-ia-pd-len">
|
||||
<?php
|
||||
foreach(array(
|
||||
'none' => 'None',
|
||||
'none' => gettext('None'),
|
||||
16 => '48',
|
||||
15 => '49',
|
||||
14 => '50',
|
||||
@ -2531,7 +2531,7 @@ include("head.inc");
|
||||
1 => '63',
|
||||
0 => '64',
|
||||
) as $bits => $length): ?>
|
||||
<option value="<?=$bits;?>" <?=$bits == $pconfig['dhcp6-ia-pd-len'] ? "selected=\"selected\"" : "";?>>
|
||||
<option value="<?=$bits;?>" <?= "{$bits}" === "{$pconfig['dhcp6-ia-pd-len']}" ? 'selected="selected"' : '' ?>>
|
||||
<?=$length;?>
|
||||
</option>
|
||||
<?php
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user