]> git.mjollnir.org Git - moodle.git/commitdiff
Making sure timelimit is converted to integer before being written to database, other...
authorskodak <skodak>
Fri, 2 Jun 2006 16:02:10 +0000 (16:02 +0000)
committerskodak <skodak>
Fri, 2 Jun 2006 16:02:10 +0000 (16:02 +0000)
mod/quiz/lib.php

index 7c4df55c3130777a17f1ac2112c2dd7f02ae59f4..2d9c3738a41232d300476b80c68317ff7845d554 100644 (file)
@@ -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
     }