From 1ef7b916eef8fa187fc2ef3e8b4ab3638fa52585 Mon Sep 17 00:00:00 2001 From: bergware Date: Tue, 17 Jan 2023 21:58:41 +0100 Subject: [PATCH] PHP8 support --- plugins/dynamix.docker.manager/include/DockerClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix.docker.manager/include/DockerClient.php b/plugins/dynamix.docker.manager/include/DockerClient.php index 905a7adc5..555054feb 100644 --- a/plugins/dynamix.docker.manager/include/DockerClient.php +++ b/plugins/dynamix.docker.manager/include/DockerClient.php @@ -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"; }