summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces_bridge_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-11 15:06:00 -0200
committerRenato Botelho <renato@netgate.com>2016-01-11 18:19:12 -0200
commit64fa3cf79b99fb6f3cd845f4699b82ac8fe9ac6a (patch)
treed99ec80ca2f26ac3595d1a70c9d93fb361351261 /src/usr/local/www/interfaces_bridge_edit.php
parenta54d4e962ab7625e791e5cce720c05b015292d40 (diff)
downloadpfsense-64fa3cf79b99fb6f3cd845f4699b82ac8fe9ac6a.zip
pfsense-64fa3cf79b99fb6f3cd845f4699b82ac8fe9ac6a.tar.gz
Look for element inside array instead of string match
Diffstat (limited to 'src/usr/local/www/interfaces_bridge_edit.php')
-rw-r--r--src/usr/local/www/interfaces_bridge_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces_bridge_edit.php b/src/usr/local/www/interfaces_bridge_edit.php
index 164cf9e..49ee68c 100644
--- a/src/usr/local/www/interfaces_bridge_edit.php
+++ b/src/usr/local/www/interfaces_bridge_edit.php
@@ -349,7 +349,7 @@ function build_port_list($selecton) {
foreach ($ifacelist as $ifn => $ifdescr) {
$portlist['list'][$ifn] = $ifdescr;
- if (stristr($selecton, $ifn)) {
+ if (in_array($ifn, explode(',', $selecton))) {
array_push($portlist['selected'], $ifn);
}
}
OpenPOWER on IntegriCloud