src: minor style issues

This commit is contained in:
Franco Fichtner 2025-01-14 13:32:28 +01:00
parent 97327f29ff
commit 8e44615f86
2 changed files with 3 additions and 4 deletions

View File

@ -560,12 +560,11 @@ $( document ).ready(function() {
<td><a id="help_for_interface" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Interface"); ?></td>
<td>
<select name="interface[]" class="selectpicker" data-width="348px" data-live-search="true" multiple="multiple">
<?php
foreach (legacy_config_get_interfaces(["enable" => true], ['lo0']) as $iface => $ifdetail): ?>
<?php foreach (legacy_config_get_interfaces(["enable" => true], ['lo0']) as $iface => $ifdetail): ?>
<option value="<?=$iface;?>" <?= in_array($iface, $pconfig['interface'] ?? []) ? "selected=\"selected\"" : ""; ?>>
<?=htmlspecialchars($ifdetail['descr']);?>
</option>
<?php endforeach; ?>
<?php endforeach ?>
</select>
<div class="hidden" data-for="help_for_interface">
<?=gettext("Choose which interface this rule applies to."); ?><br />

View File

@ -385,7 +385,7 @@ function gentitle($breadcrumbs, $navlevelsep = ': ')
return join($navlevelsep, $output) . "$gentitle_suffix";
}
function address_to_pconfig($adr, &$padr, &$pmask, &$pnot, &$pbeginport, &$pendport, $merge_mask=false)
function address_to_pconfig($adr, &$padr, &$pmask, &$pnot, &$pbeginport, &$pendport, $merge_mask = false)
{
if (isset($adr['any'])) {
$padr = "any";