From: moodler Date: Tue, 28 Oct 2003 09:50:23 +0000 (+0000) Subject: Use unique stamps when creating multiple questions ... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cb4f77069d85d9b185aee06f9321c8e76085ec1b;p=moodle.git Use unique stamps when creating multiple questions ... --- diff --git a/mod/quiz/multiple.php b/mod/quiz/multiple.php index da9c910afd..204465db32 100644 --- a/mod/quiz/multiple.php +++ b/mod/quiz/multiple.php @@ -46,8 +46,8 @@ $question->questiontext = "---"; $question->image = ""; $question->defaultgrade = $form->randomgrade; - $question->stamp = make_unique_id_code(); // Set the unique code (not to be changed) for ($i=0; $i<$randomcreate; $i++) { + $question->stamp = make_unique_id_code(); // Set the unique code (not to be changed) if (!$newquestionids[] = insert_record("quiz_questions", $question)) { error("Could not insert new random question!"); }