T201704201433

This commit is contained in:
Leander
2017-04-20 14:33:57 +02:00
parent c7997cf104
commit 8b06b98cbf

View File

@@ -17,6 +17,8 @@ $chosen_answer = isset($_GET['answer']) ? $_GET['answer'] : '';
$chosen_answer = (($chosen_answer === '0') || ($chosen_answer && gettype(+$chosen_answer) == 'integer')) ? +$_GET['answer'] : -1;
function calculate_points($time) {
$points = 0;
if($time > 10) {
if ($time < TIME_FULL) {
$points = MAX_POINTS;
} else {
@@ -25,6 +27,7 @@ function calculate_points($time) {
if ($points < MIN_POINTS) {
$points = MIN_POINTS;
}
}
return $points;
}