From e2bce7e5a480cc898dbe6f1ecee09f4ac508ca00 Mon Sep 17 00:00:00 2001 From: Jean-Yves <7360784+docjyJ@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:41:25 +0100 Subject: [PATCH] Fixes Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com> --- php/src/Data/ConfigurationManager.php | 4 ++-- php/templates/includes/aio-config.twig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/php/src/Data/ConfigurationManager.php b/php/src/Data/ConfigurationManager.php index 6554e4ddf71..31fa7272056 100644 --- a/php/src/Data/ConfigurationManager.php +++ b/php/src/Data/ConfigurationManager.php @@ -990,11 +990,11 @@ private function GetEnabledNvidiaGPUMode() : string { } public function isNvidiaRuntimeEnabled() : bool { - $this->GetEnabledNvidiaGPUMode() === 'runtime' + return $this->GetEnabledNvidiaGPUMode() === 'runtime'; } public function isNvidiaDeployEnabled() : bool { - $this->GetEnabledNvidiaGPUMode() === 'deploy' + return $this->GetEnabledNvidiaGPUMode() === 'deploy'; } private function GetKeepDisabledApps() : string { diff --git a/php/templates/includes/aio-config.twig b/php/templates/includes/aio-config.twig index ed22ba578e6..f4f2741771b 100644 --- a/php/templates/includes/aio-config.twig +++ b/php/templates/includes/aio-config.twig @@ -39,7 +39,7 @@
{% if is_nvidia_runtime_enabled == true %} Nvidia runtime is enabled. - {% elseif is_nvidia_gpu_deploy_enabled = true %} + {% elseif is_nvidia_gpu_deploy_enabled == true %} Nvidia GPU access is enabled. {% else %} Nvidia GPU access is disabled.