From 1a85237d15fbcc7100da15bb3618a37ec3bab763 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 9 Jun 2020 17:01:58 +0100 Subject: [PATCH] Rename var for clarity --- includes/dashboard.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/dashboard.php b/includes/dashboard.php index 77b94d5b..b3d92e5f 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -22,7 +22,6 @@ function DisplayDashboard(&$extraFooterScripts) $status->showMessages(); return; } - exec('ip a show '.$_SESSION['ap_interface'], $stdoutIp); $stdoutIpAllLinesGlued = implode(" ", $stdoutIp); $stdoutIpWRepeatedSpaces = preg_replace('/\s\s+/', ' ', $stdoutIpAllLinesGlued); @@ -93,8 +92,8 @@ function DisplayDashboard(&$extraFooterScripts) // fetch first wireless interface $iface = $_SESSION['ap_interface']; exec("iw dev | awk '$1==\"Interface\" && $2!=\"$iface\" {print $2}'",$iface2); - $host_iface = empty($iface2) ? $iface1 : trim($iface2[0]); - exec('iw dev ' .$host_iface. ' link ', $stdoutIw); + $wifi_client_interface = empty($iface2) ? $iface1 : trim($iface2[0]); + exec('iw dev ' .$wifi_client_interface. ' link ', $stdoutIw); $stdoutIwAllLinesGlued = implode(' ', $stdoutIw); $stdoutIwWRepSpaces = preg_replace('/\s\s+/', ' ', $stdoutIwAllLinesGlued);