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);
|
exec('cat '. RASPI_LIGHTTPD_CONFIG, $return);
|
||||||
$conf = ParseConfig($return);
|
$conf = ParseConfig($return);
|
||||||
$serverPort = $conf['server.port'];
|
$serverPort = $conf['server.port'];
|
||||||
|
if (isset($conf['server.bind'])) {
|
||||||
$serverBind = str_replace('"', '',$conf['server.bind']);
|
$serverBind = str_replace('"', '',$conf['server.bind']);
|
||||||
|
} else {
|
||||||
|
$serverBind = '';
|
||||||
|
}
|
||||||
|
|
||||||
// define locales
|
// define locales
|
||||||
$arrLocales = getLocales();
|
$arrLocales = getLocales();
|
||||||
|
@ -77,6 +77,7 @@ function nearbyWifiStations(&$networks, $cached = true)
|
|||||||
if ( isset($lastnet['index']) ) $index = $lastnet['index'] + 1;
|
if ( isset($lastnet['index']) ) $index = $lastnet['index'] + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_array($scan_results)) {
|
||||||
array_shift($scan_results);
|
array_shift($scan_results);
|
||||||
foreach ($scan_results as $network) {
|
foreach ($scan_results as $network) {
|
||||||
$arrNetwork = preg_split("/[\t]+/", $network); // split result into array
|
$arrNetwork = preg_split("/[\t]+/", $network); // split result into array
|
||||||
@ -119,6 +120,7 @@ function nearbyWifiStations(&$networks, $cached = true)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function connectedWifiStations(&$networks)
|
function connectedWifiStations(&$networks)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user