summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-19 18:34:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-19 18:34:38 +0000
commitb627d72c1e8ed8a35127145445685213c653e7e5 (patch)
tree7e45e0414a0f11a3534b73f039f6e6d6fa7190f4 /usr
parent5e4b648eb6fe777c55b11368b784f45c2f650176 (diff)
downloadpfsense-b627d72c1e8ed8a35127145445685213c653e7e5.zip
pfsense-b627d72c1e8ed8a35127145445685213c653e7e5.tar.gz
Kill Warning: in_array(): Wrong datatype for second argument in /usr/local/www/pkg_edit.php on line 417 errors
Diffstat (limited to 'usr')
-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