mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Fix php warning + undefined var notice
This commit is contained in:
parent
c64bdb42c8
commit
ceea867c69
@ -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();
|
||||
|
@ -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
|
||||
@ -118,6 +119,7 @@ function nearbyWifiStations(&$networks, $cached = true)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function connectedWifiStations(&$networks)
|
||||
|
Loading…
x
Reference in New Issue
Block a user