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.