Permalink
Browse files

Added empty option line so not to write to config.xml if not filled in

  • Loading branch information...
1 parent de69fab commit 177a823e524c60f12e775ea2d6e0b3590554846a @Whizkidzz Whizkidzz committed Apr 6, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 usr/local/www/pkg_edit.php
@@ -498,7 +498,7 @@ function enablechange() {
} else if($pkga['type'] == "select") {
$fieldname = $pkga['fieldname'];
if (isset($pkga['multiple'])) {
- $multiple = 'multiple="multiple"';
+ $multiple = 'multiple="multiple"';
$items = explode(',', $value);
$fieldname .= "[]";
} else {
@@ -648,6 +648,10 @@ function enablechange() {
else
$values = explode(',', $value);
$ifaces["lo0"] = "loopback";
+ if(isset($pkga['advancedfield']) && $adv_enabled)
+ $advanced .="<option><name></name><value></value></option>/n";
+ else
+ echo "<option><name></name><value></value></option>/n";
foreach($ifaces as $ifname => $iface) {
$selected = (in_array($ifname, $values) ? 'selected' : '');
if(isset($pkga['advancedfield']) && $adv_enabled)

0 comments on commit 177a823

Please sign in to comment.