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

fix: nullable egg features (#5135)

This commit is contained in:
Dawid Jaworski 2024-07-05 21:22:47 +02:00 committed by GitHub
parent 8ae76c3889
commit 2dcd39c9c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,7 +118,7 @@
<label for="pConfigFeatures" class="control-label">Features</label>
<div>
<select class="form-control" name="features[]" id="pConfigFeatures" multiple>
@foreach($egg->features as $feature)
@foreach(($egg->features ?? []) as $feature)
<option value="{{ $feature }}" selected>{{ $feature }}</option>
@endforeach
</select>