diff --git a/lib/Controller/AdminController.php b/lib/Controller/AdminController.php index fa7cf6f4..bb29efdd 100644 --- a/lib/Controller/AdminController.php +++ b/lib/Controller/AdminController.php @@ -151,7 +151,7 @@ public function avx(): JSONResponse { } catch (\Throwable $e) { return new JSONResponse(['avx' => null]); } - return new JSONResponse(['avx' => strpos($cpuinfo, 'avx') !== false]); + return new JSONResponse(['avx' => $cpuinfo !== false && strpos($cpuinfo, 'avx') !== false]); } public function platform(): JSONResponse {