mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Detect if stored item in config.xml is an array. If it's an array simply pass array along, if its not then attempt to explode the array.
This commit is contained in:
parent
3c61688623
commit
9996eff6ce
@ -409,9 +409,11 @@ if ($pkg['tabs'] <> "") {
|
||||
$additional_ifaces = $pkga['add_to_interfaces_selection'];
|
||||
if (!empty($additional_ifaces))
|
||||
$ifaces = array_merge($ifaces, explode(',', $additional_ifaces));
|
||||
if(is_array($value))
|
||||
$values = $value;
|
||||
else
|
||||
$values = explode(',', $value);
|
||||
|
||||
/* value is already an array, no need to explode it */
|
||||
$values = $value;
|
||||
foreach($ifaces as $ifname => $iface) {
|
||||
if (isset($iface['descr']))
|
||||
$ifdescr = $iface['descr'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user