From 08e9c732d05b38c9cdcd826ac6a22ff99c155993 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 14 Mar 2013 15:20:50 +0000 Subject: [PATCH] Use empty which is more strict --- etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 4ef1e5827e..b756c0144f 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2914,7 +2914,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven $mtu = get_interface_default_mtu(remove_ifindex($realhwif)); $assignedparent = convert_real_interface_to_friendly_interface_name($realhwif); - if (!empty($assignedparent) && isset($config['interfaces'][$assignedparent]['mtu'])) + if (!empty($assignedparent) && !empty($config['interfaces'][$assignedparent]['mtu'])) $mtu = $config['interfaces'][$assignedparent]['mtu']; $vlanifs = link_interface_to_vlans($realhwif);