mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(legacy) fix interface selection on post issues in floating rules, firewall_rules_edit.php
This commit is contained in:
parent
0bba9c6351
commit
74d923fd1f
@ -778,7 +778,13 @@ include("head.inc");
|
||||
<?php
|
||||
endif;
|
||||
foreach (formInterfaces() as $iface => $ifacename): ?>
|
||||
<option value="<?=$iface;?>" <?= !empty($pconfig['interface']) && ($iface == $pconfig['interface'] || (!is_array($pconfig['interface']) && strpos($pconfig['interface'], ',') !== false && in_array($iface, explode(',', $pconfig['interface'])))) ? 'selected="selected"' : ''; ?>>
|
||||
<option value="<?=$iface;?>"
|
||||
<?= !empty($pconfig['interface']) && (
|
||||
$iface == $pconfig['interface'] ||
|
||||
// match floating / multiple interfaces
|
||||
(!is_array($pconfig['interface']) && in_array($iface, explode(',', $pconfig['interface']))) ||
|
||||
(is_array($pconfig['interface']) && in_array($iface, $pconfig['interface']))
|
||||
) ? 'selected="selected"' : ''; ?>>
|
||||
<?=htmlspecialchars($ifacename);?>
|
||||
</option>
|
||||
<?php
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user