Skip to content

Commit 7854cb3

Browse files
committed
Add parentheses to conditional
1 parent e283930 commit 7854cb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/templates/Packet/Form.inc.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ use \CarlBennett\MVC\Libraries\Common; ?>
1111
<div class="form-group">
1212
<label class="font-weight-bold" for="direction">Direction:</label>
1313
<select class="bg-dark border border-primary custom-select text-light" name="direction" id="direction" tabindex="1">
14-
<option value="<?=Packet::DIRECTION_CLIENT_SERVER?>"<?=($form_fields['direction'] ?? null === Packet::DIRECTION_CLIENT_SERVER ? ' selected' : '')?>>Client to Server</option>
15-
<option value="<?=Packet::DIRECTION_SERVER_CLIENT?>"<?=($form_fields['direction'] ?? null === Packet::DIRECTION_SERVER_CLIENT ? ' selected' : '')?>>Server to Client</option>
16-
<option value="<?=Packet::DIRECTION_PEER_TO_PEER?>"<?=($form_fields['direction'] ?? null === Packet::DIRECTION_PEER_TO_PEER ? ' selected' : '')?>>Peer to Peer</option>
14+
<option value="<?=Packet::DIRECTION_CLIENT_SERVER?>"<?=(($form_fields['direction'] ?? null) === Packet::DIRECTION_CLIENT_SERVER ? ' selected' : '')?>>Client to Server</option>
15+
<option value="<?=Packet::DIRECTION_SERVER_CLIENT?>"<?=(($form_fields['direction'] ?? null) === Packet::DIRECTION_SERVER_CLIENT ? ' selected' : '')?>>Server to Client</option>
16+
<option value="<?=Packet::DIRECTION_PEER_TO_PEER?>"<?=(($form_fields['direction'] ?? null) === Packet::DIRECTION_PEER_TO_PEER ? ' selected' : '')?>>Peer to Peer</option>
1717
</select>
1818
</div>
1919
</div><div class="col-lg-3">

0 commit comments

Comments
 (0)