Fixed ternary

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-03-18 21:28:46 +00:00
parent da62d6af26
commit 21e23baa37

View file

@ -43,7 +43,7 @@ Form::macro('countries', function ($name = 'country', $selected = null, $class =
$abbr = strtoupper($abbr); $abbr = strtoupper($abbr);
} }
$select .= '<option value="'.$abbr.'"'.($selected == $abbr) ? ' selected="selected" role="option" aria-selected="true"' : ' aria-selected="false"'.'>'.$country.'</option> '; $select .= '<option value="'.$abbr.'"'.(($selected == $abbr) ? ' selected="selected" role="option" aria-selected="true"' : ' aria-selected="false"').'>'.$country.'</option> ';
} }
$select .= '</select>'; $select .= '</select>';