This commit is contained in:
Boy132 2024-05-12 22:24:37 +02:00
parent 399bed7576
commit b813de0467
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class BuildModificationService
throw_unless($existingAllocation, new DisplayException('The requested default allocation is not currently assigned to this server.')); throw_unless($existingAllocation, new DisplayException('The requested default allocation is not currently assigned to this server.'));
} }
if(!isset($data['oom_killer']) && isset($data['oom_disabled'])) { if (!isset($data['oom_killer']) && isset($data['oom_disabled'])) {
$data['oom_killer'] = !$data['oom_disabled']; $data['oom_killer'] = !$data['oom_disabled'];
} }

View File

@ -47,7 +47,7 @@ class ServerCreationService
*/ */
public function handle(array $data, DeploymentObject $deployment = null): Server public function handle(array $data, DeploymentObject $deployment = null): Server
{ {
if(!isset($data['oom_killer']) && isset($data['oom_disabled'])) { if (!isset($data['oom_killer']) && isset($data['oom_disabled'])) {
$data['oom_killer'] = !$data['oom_disabled']; $data['oom_killer'] = !$data['oom_disabled'];
} }