diff --git a/registration-system/frameworks/Bachelor.php b/registration-system/frameworks/Bachelor.php index 26ceac3e2f32564ce58d9ea7fa3174fe7afeeedd..1c128457cbba1e4f8c3167e2c0898809517fd905 100644 --- a/registration-system/frameworks/Bachelor.php +++ b/registration-system/frameworks/Bachelor.php @@ -443,7 +443,7 @@ class Bachelor { if (empty($tmp) or $tmp == 'UNSET') array_push($this->validationErrors, $errmess); else - $this->set([$index => ($tmp == 'JA') ? 0 : 1]); + $this->set([$index => (strtoupper($tmp) == 'JA') ? 0 : 1]); } //everything else else { // check with regex @@ -470,4 +470,4 @@ class Bachelor { $this->data[$key] = $nBdata[$key]; } } -} \ No newline at end of file +}