summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/pkg_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index d371c8d..cdedac4 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -414,7 +414,8 @@ if ($pkg['tabs'] <> "") {
$ip = " " . find_interface_ip($iface);
}
$SELECTED = "";
- if(in_array($ifdescr,$value)) $SELECTED = " SELECTED";
+ if(is_array($value))
+ if(in_array($ifdescr,$value)) $SELECTED = " SELECTED";
if($value == $ifdescr) $SELECTED = " SELECTED";
$to_echo = "<option value='" . $ifdescr . "'" . $SELECTED . ">" . $ifdescr . $ip . "</option>\n";
$to_echo .= "<!-- {$value} -->";
OpenPOWER on IntegriCloud