summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-25 18:18:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-25 18:18:19 +0000
commit65bed2d215e660f6e297dc398a8428d2e7c04695 (patch)
treeb817474dc191567b4f5228f4aa65a0440859938d /etc
parentafb5973f2a62742d5ad03dd21cbdc6c6026b38a2 (diff)
downloadpfsense-65bed2d215e660f6e297dc398a8428d2e7c04695.zip
pfsense-65bed2d215e660f6e297dc398a8428d2e7c04695.tar.gz
Try and prevent the error:
Warning: in_array(): Wrong datatype for second argument in /etc/inc/util.inc on line 269 by definging $upints = array(); at the beginning of the function
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 7b5e039..96903fc 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -239,6 +239,7 @@ function is_port($port) {
*/
function get_interface_list($mode = "active", $keyby = "physical") {
global $config;
+ $upints = array();
/* get a list of virtual interface types */
$vfaces = explode(" ", trim(shell_exec("/sbin/ifconfig -C")));
switch($mode) {
OpenPOWER on IntegriCloud