Skip to content

Commit 0ae90ea

Browse files
committed
Don't try to store null values in the DB for variables; closes pterodactyl#3038
1 parent 8e7fcb4 commit 0ae90ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Services/Servers/ServerCreationService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private function storeEggVariables(Server $server, Collection $variables)
258258
return [
259259
'server_id' => $server->id,
260260
'variable_id' => $result->id,
261-
'variable_value' => $result->value,
261+
'variable_value' => $result->value ?? '',
262262
];
263263
})->toArray();
264264

0 commit comments

Comments
 (0)