summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-26 19:22:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-26 19:22:41 +0000
commit9996eff6ced362469991a9eaad5fc3beebb716bd (patch)
tree302888a39d89c9cc7dc3a1d36368cf20d5392b8a /usr
parent3c61688623ecfa6d3d54cfb713a2d94df6b047ac (diff)
downloadpfsense-9996eff6ced362469991a9eaad5fc3beebb716bd.zip
pfsense-9996eff6ced362469991a9eaad5fc3beebb716bd.tar.gz
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.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_edit.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index bca151d..f0bbc69 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -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'];
OpenPOWER on IntegriCloud