From 2e4cad90499f968474c4eca0852f352f1526b617 Mon Sep 17 00:00:00 2001 From: David Wood Date: Sun, 11 Oct 2015 03:53:16 +0100 Subject: Coding style fixes in interface_mtu_wanted_for_pppoe() --- src/etc/inc/interfaces.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/etc') diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index d30866f..8adadc0 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -3117,20 +3117,24 @@ function interface_mtu_wanted_for_pppoe($realif) { // use the MTU configured on the interface ... if (is_array($config['interfaces'])) { foreach ($config['interfaces'] as $interface) { - if ($interface['if'] != $ppp['if']) + if ($interface['if'] != $ppp['if']) { continue; - if (!empty($interface['mtu'])) + } + if (!empty($interface['mtu'])) { $mtu_wanted = intval($interface['mtu']) + 8; + } } } // ... unless there is an MTU configured on the port in question if (!empty($ppp['mtu'])) { $mtus = explode(',',$ppp['mtu']); - if (!empty($mtus[$pid])) + if (!empty($mtus[$pid])) { $mtu_wanted = intval($mtus[$pid]) + 8; + } } - if ($mtu_wanted > $mtu) + if ($mtu_wanted > $mtu) { $mtu = $mtu_wanted; + } } } } -- cgit v1.1