PHP8 support

This commit is contained in:
bergware
2023-01-17 21:58:41 +01:00
parent 351037c038
commit 1ef7b916ee

View File

@@ -17,7 +17,7 @@ libxml_use_internal_errors(true); # Suppress any warnings from xml errors.
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
// add translations
if ($_SERVER['REQUEST_URI'] != 'docker' && substr($_SERVER['REQUEST_URI']??'',0,7) != '/Docker') {
if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']!='docker' && substr($_SERVER['REQUEST_URI']??'',0,7) != '/Docker') {
$_SERVER['REQUEST_URI'] = 'docker';
require_once "$docroot/webGui/include/Translations.php";
}