From 97d10e1ed3ec0368168d2d926e898ae9e25b062b Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 17 Apr 2023 08:36:46 +0200 Subject: [PATCH] interfaces: remove indirection for #6489 --- src/etc/inc/interfaces.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 773ebdcbe..de73a9acb 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -3951,13 +3951,12 @@ function get_interfaces_info($include_unlinked = false) } } } - $dev = $ppp['ports']; - if ($config['interfaces'][$ifdescr]['if'] != $ppp['if'] || empty($dev)) { + if ($config['interfaces'][$ifdescr]['if'] != $ppp['if'] || empty($ppp['ports'])) { break; } - if (!file_exists($dev)) { + if (!file_exists($ppp['ports'])) { $ifinfo['nodevice'] = 1; - $ifinfo['pppinfo'] = $dev . " " . gettext("device not present! Is the modem attached to the system?"); + $ifinfo['pppinfo'] = $ppp['ports'] . " " . gettext("device not present! Is the modem attached to the system?"); } // Calculate cumulative uptime for PPP link. Useful for connections that have per minute/hour contracts so you don't go over!