fix(web): state $_SESSION usage

This commit is contained in:
Zack Spear
2023-10-04 16:47:40 -07:00
committed by Zack Spear
parent c07e4f45fb
commit 65a69b2009

View File

@@ -58,7 +58,7 @@ $serverState = [
"internalPort" => $_SERVER['SERVER_PORT'],
"keyfile" => empty($var['regFILE']) ? '' : str_replace(['+', '/', '='], ['-', '_', ''], trim(base64_encode(@file_get_contents($var['regFILE'])))),
"lanIp" => ipaddr(),
"locale" => ($_SESSION['locale']) ? $_SESSION['locale'] : 'en_US',
"locale" => (!empty($_SESSION) && $_SESSION['locale']) ? $_SESSION['locale'] : 'en_US',
"model" => $var['SYS_MODEL'],
"name" => htmlspecialchars($var['NAME']),
"osVersion" => $var['version'],