Making sure timelimit is converted to integer before being written to database, otherwise postgreSQL complains. Closing bug 5401; merged from MOODLE_15_STABLE
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ function quiz_add_instance($quiz) {
|
||||
}
|
||||
}
|
||||
$quiz->name = trim($quiz->name);
|
||||
|
||||
$quiz->timelimit = round($quiz->timelimit);
|
||||
if (!$quiz->id = insert_record("quiz", $quiz)) {
|
||||
return false; // some error occurred
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user