Skip to content
Snippets Groups Projects
Commit 33d9ee7a authored by Tim's avatar Tim Committed by GitHub
Browse files

Fix admin not saving virginity #62

This fixes an issue with the viginity check. Apparently there was just an upper/lowercase issue.
parent 966ed1ed
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment