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:
Scott Ullrich 2006-09-26 19:22:41 +00:00
parent 3c61688623
commit 9996eff6ce

View File

@ -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'];