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'];
$serverBind = str_replace('"', '',$conf['server.bind']);
if (isset($conf['server.bind'])) {
$serverBind = str_replace('"', '',$conf['server.bind']);
} else {
$serverBind = '';
}
// define locales
$arrLocales = getLocales();