1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 01:22:30 +01:00

Fix for struct in Go

This commit is contained in:
Dane Everitt 2020-08-04 20:38:24 -07:00
parent 164d6ef2e4
commit c91c02f6a8
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -67,12 +67,11 @@ class EggConfigurationService
{
$done = Arr::get($startup, 'done');
return array_filter([
return [
'done' => is_string($done) ? [$done] : $done,
'user_interaction' => Arr::get($startup, 'userInteraction'),
], function ($datum) {
return ! is_null($datum);
});
'user_interaction' => Arr::get($startup, 'userInteraction') ?? [],
'strip_ansi' => Arr::get($startup, 'strip_ansi') ?? false,
];
}
/**