Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Default quiz category must have a stamp

  • Loading branch information...
commit 25b6ff9d3b275e963d5852f97011cd9f300370d5 1 parent d4914c6
moodler authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  mod/quiz/lib.php
View
1  mod/quiz/lib.php
@@ -1019,6 +1019,7 @@ function quiz_get_default_category($courseid) {
$category->info = get_string("defaultinfo", "quiz");
$category->course = $courseid;
$category->publish = 0;
+ $category->stamp = make_unique_id_code();
if (!$category->id = insert_record("quiz_categories", $category)) {
notify("Error creating a default category!");
Please sign in to comment.
Something went wrong with that request. Please try again.