Skip to content

Commit

Permalink
fix #2650: Added parentheses to fix the order of evaluation between t…
Browse files Browse the repository at this point in the history
…he null coalescing operator (??) and the ternary operator (?:)
  • Loading branch information
HarryThe3rd authored and ifox committed Oct 14, 2024
1 parent 309c37b commit 58dc470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/layouts/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div class="form" v-sticky data-sticky-id="navbar" data-sticky-offset="0" data-sticky-topoffset="12">
<div class="navbar navbar--sticky" data-sticky-top="navbar">
@php
$additionalFieldsets = $additionalFieldsets ?? isset($formBuilder) ? $formBuilder->getAdditionalFieldsets() : [];
$additionalFieldsets = $additionalFieldsets ?? (isset($formBuilder) ? $formBuilder->getAdditionalFieldsets() : []);
if(!$disableContentFieldset && isset($formBuilder) && $formBuilder->hasFieldsInBaseFieldset()) {
array_unshift($additionalFieldsets, [
'fieldset' => 'content',
Expand Down

0 comments on commit 58dc470

Please sign in to comment.