From d0a4d9c4c65f404cbcecd89cc3a2287f52702f5c Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 18 Jan 2023 00:37:30 +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 45b4baf8b..948136d54 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 (isset($_SERVER['REQUEST_URI']) && $_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"; }