diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-19 18:34:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-19 18:34:38 +0000 |
commit | b627d72c1e8ed8a35127145445685213c653e7e5 (patch) | |
tree | 7e45e0414a0f11a3534b73f039f6e6d6fa7190f4 | |
parent | 5e4b648eb6fe777c55b11368b784f45c2f650176 (diff) | |
download | pfsense-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
-rwxr-xr-x | usr/local/www/pkg_edit.php | 3 |
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} -->"; |