Skip to content

Commit

Permalink
Need More Brackets!!
Browse files Browse the repository at this point in the history
  • Loading branch information
robbi5 authored Nov 13, 2024
1 parent 8154ed3 commit 2ebbe0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/member-application.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

foreach($fields as $field => $filter) {
$value = filter_input(INPUT_POST, $field, $filter, isset($options[$field]) ? array('options' => array('regexp' => $options[$field])) : 0);
if ($value === false || ((!$value || trim($value) === '') && !in_array($field, $optional)) {
if ($value === false || ((!$value || trim($value) === '') && !in_array($field, $optional))) {
$errors[$field] = true;
} else if ($field === 'iban') {
$value = strtoupper(str_replace(' ', '', $value));
Expand Down

0 comments on commit 2ebbe0f

Please sign in to comment.