diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-25 18:18:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-25 18:18:19 +0000 |
commit | 65bed2d215e660f6e297dc398a8428d2e7c04695 (patch) | |
tree | b817474dc191567b4f5228f4aa65a0440859938d /etc/inc/util.inc | |
parent | afb5973f2a62742d5ad03dd21cbdc6c6026b38a2 (diff) | |
download | pfsense-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/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 1 |
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) { |