diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-11 15:06:00 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-11 18:19:12 -0200 |
commit | 64fa3cf79b99fb6f3cd845f4699b82ac8fe9ac6a (patch) | |
tree | d99ec80ca2f26ac3595d1a70c9d93fb361351261 /src/usr/local/www/interfaces_bridge_edit.php | |
parent | a54d4e962ab7625e791e5cce720c05b015292d40 (diff) | |
download | pfsense-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.php | 2 |
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); } } |