diff --git a/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php b/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php index e2217adff..113b7c01e 100644 --- a/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php +++ b/app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php @@ -56,7 +56,7 @@ class ServerInstallController extends Controller { $server = $this->repository->getByUuid($uuid); - $status = $request->input('successful') === '1' ? null : Server::STATUS_INSTALL_FAILED; + $status = $request->boolean('successful') ? null : Server::STATUS_INSTALL_FAILED; if ($server->status === Server::STATUS_SUSPENDED) { $status = Server::STATUS_SUSPENDED; }