Skip to content

Commit 9af1b9c

Browse files
authored
Merge pull request pterodactyl#3072 from pterodactyl/matthewpi/fix-server-installs
api(remote): fix inproper reading of boolean for installation status
2 parents 00da092 + 352910f commit 9af1b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Api/Remote/Servers/ServerInstallController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function store(InstallationDataRequest $request, string $uuid)
5656
{
5757
$server = $this->repository->getByUuid($uuid);
5858

59-
$status = $request->input('successful') === '1' ? null : Server::STATUS_INSTALL_FAILED;
59+
$status = $request->boolean('successful') ? null : Server::STATUS_INSTALL_FAILED;
6060
if ($server->status === Server::STATUS_SUSPENDED) {
6161
$status = Server::STATUS_SUSPENDED;
6262
}

0 commit comments

Comments
 (0)