From a58a9ece9cf645c642bab7136a8d1cb9c0123c15 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 8 Mar 2013 13:30:55 +0000 Subject: Be consistent on the check --- usr/local/www/interfaces.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index f34f0b1..0711cb0 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -636,12 +636,11 @@ if ($_POST['apply']) { if ($_POST['mtu'] < 576 || $_POST['mtu'] > 9000) $input_errors[] = gettext("The MTU must be greater than 576 bytes."); - if (preg_match('/_vlan[0-9]/', $wancfg['if'])) { + if (stristr($wancfg['if'], "_vlan")) { $realhwif_array = get_parent_interface($wancfg['if']); // Need code to handle MLPPP if we ever use $realhwif for MLPPP handling $parent_realhwif = $realhwif_array[0]; $parent_if = convert_real_interface_to_friendly_interface_name($parent_realhwif); - if (!empty($parent_if) && isset($config['interfaces'][$parent_if]['mtu'])) { $parent_mtu = $config['interfaces'][$parent_if]['mtu']; -- cgit v1.1