diff --git a/lib/Controller/AdminController.php b/lib/Controller/AdminController.php index 3c388bdf..c8ea6596 100644 --- a/lib/Controller/AdminController.php +++ b/lib/Controller/AdminController.php @@ -275,9 +275,9 @@ public function cron(): JSONResponse { return new JSONResponse(['cron' => $cron]); } - public function setSetting(string $setting, string $value): JSONResponse { + public function setSetting(string $setting, $value): JSONResponse { try { - $this->settingsService->setSetting($setting, $value); + $this->settingsService->setSetting($setting, (string) $value); return new JSONResponse([], Http::STATUS_OK); } catch (\OCA\Recognize\Exception\Exception $e) { return new JSONResponse([], Http::STATUS_BAD_REQUEST);