diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-26 19:22:41 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-26 19:22:41 +0000 |
commit | 9996eff6ced362469991a9eaad5fc3beebb716bd (patch) | |
tree | 302888a39d89c9cc7dc3a1d36368cf20d5392b8a /usr/local/www/pkg_edit.php | |
parent | 3c61688623ecfa6d3d54cfb713a2d94df6b047ac (diff) | |
download | pfsense-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/local/www/pkg_edit.php')
-rwxr-xr-x | usr/local/www/pkg_edit.php | 6 |
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']; |