From 62cf80b78c623db7985cff9ac6e5db810085c09d Mon Sep 17 00:00:00 2001 From: bdaloukas Date: Mon, 14 Aug 2017 15:41:18 +0300 Subject: [PATCH] New: Auto detects common problems in millionaire --- check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.php b/check.php index bacf64a..ad29ef8 100644 --- a/check.php +++ b/check.php @@ -231,7 +231,7 @@ function game_check_common_problems_shortanswer_question($game, &$warnings) { // Maybe there are more answers to one question. I use as correct the one with bigger fraction. $sql = "SELECT DISTINCT answer FROM {$CFG->prefix}question_answers WHERE question={$rec->id} ORDER BY fraction DESC"; $recs2 = $DB->get_records_sql( $sql); - foreach( $recs2 as $rec2) { + foreach ($recs2 as $rec2) { $a[] = $rec2->answer; break; }