mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
Interfaces / Diagnostics / Packet Capture - fix "PHP Warning: in_array() expects parameter 2 to be array, null given in /usr/local/www/diag_packet_capture.php on line 355"
This commit is contained in:
parent
9f60452eb9
commit
8622b93c15
@ -358,7 +358,7 @@ include("fbegin.inc");
|
||||
<select id="interface" name="interface[]" class="selectpicker" multiple="multiple">
|
||||
<?php
|
||||
foreach ($interfaces as $iface => $ifacename): ?>
|
||||
<option value="<?=$iface;?>" <?=in_array($iface, $pconfig['interface']) ? "selected=\"selected\"" : ""; ?>>
|
||||
<option value="<?=$iface;?>" <?=is_array($pconfig['interface']) && in_array($iface, $pconfig['interface']) ? "selected=\"selected\"" : ""; ?>>
|
||||
<?=$ifacename;?>
|
||||
</option>
|
||||
<?php
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user