Skip to content

Commit 0ec2ac8

Browse files
committed
Check the boolean itself, not the value.
1 parent cd7ec73 commit 0ec2ac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/themes/pterodactyl/admin/nodes/view/settings.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
<div class="form-group col-xs-12">
6868
<label for="public" class="control-label">Allow Automatic Allocation <sup><a data-toggle="tooltip" data-placement="top" title="Allow automatic allocation to this Node?">?</a></sup></label>
6969
<div>
70-
<input type="radio" name="public" value="1" {{ (old('public', $node->public) === '1') ? 'checked' : '' }} id="public_1" checked> <label for="public_1" style="padding-left:5px;">Yes</label><br />
71-
<input type="radio" name="public" value="0" {{ (old('public', $node->public) === '0') ? 'checked' : '' }} id="public_0"> <label for="public_0" style="padding-left:5px;">No</label>
70+
<input type="radio" name="public" value="1" {{ (old('public', $node->public)) ? 'checked' : '' }} id="public_1" checked> <label for="public_1" style="padding-left:5px;">Yes</label><br />
71+
<input type="radio" name="public" value="0" {{ (old('public', $node->public)) ? '' : 'checked' }} id="public_0"> <label for="public_0" style="padding-left:5px;">No</label>
7272
</div>
7373
</div>
7474
<div class="form-group col-xs-12">

0 commit comments

Comments
 (0)