Skip to content

Commit 2dcd39c

Browse files
authored
fix: nullable egg features (pterodactyl#5135)
1 parent 8ae76c3 commit 2dcd39c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: resources/views/admin/eggs/view.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
<label for="pConfigFeatures" class="control-label">Features</label>
119119
<div>
120120
<select class="form-control" name="features[]" id="pConfigFeatures" multiple>
121-
@foreach($egg->features as $feature)
121+
@foreach(($egg->features ?? []) as $feature)
122122
<option value="{{ $feature }}" selected>{{ $feature }}</option>
123123
@endforeach
124124
</select>

0 commit comments

Comments
 (0)