Fix php warning + undefined var notice

This commit is contained in:
billz 2023-09-06 12:25:39 +02:00
parent c64bdb42c8
commit ceea867c69
2 changed files with 41 additions and 35 deletions

View File

@ -125,7 +125,11 @@ function DisplaySystem(&$extraFooterScripts)
exec('cat '. RASPI_LIGHTTPD_CONFIG, $return);
$conf = ParseConfig($return);
$serverPort = $conf['server.port'];
if (isset($conf['server.bind'])) {
$serverBind = str_replace('"', '',$conf['server.bind']);
} else {
$serverBind = '';
}
// define locales
$arrLocales = getLocales();

View File

@ -77,6 +77,7 @@ function nearbyWifiStations(&$networks, $cached = true)
if ( isset($lastnet['index']) ) $index = $lastnet['index'] + 1;
}
if (is_array($scan_results)) {
array_shift($scan_results);
foreach ($scan_results as $network) {
$arrNetwork = preg_split("/[\t]+/", $network); // split result into array
@ -119,6 +120,7 @@ function nearbyWifiStations(&$networks, $cached = true)
}
}
}
}
function connectedWifiStations(&$networks)
{