Permalink
Browse files

Fixing typo causing some (a few) sites to break on upgrade. Credit

goes to Rafa Gutierrez. MDL-9316
  • Loading branch information...
1 parent 35decbd commit d7a7b5b5dbf3844344434fe3153253653f4e54d2 stronk7 committed Apr 12, 2007
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/quiz/db/mysql.php
  2. +1 −1 mod/quiz/db/postgres7.php
View
@@ -837,7 +837,7 @@ function quiz_upgrade($oldversion) {
//If the course doesn't exist, orphan category found!
//Process it with question_delete_course(). It will do all the hard work.
if (!record_exists('course', 'id', $course->id)) {
- require_once("$CFG->libdir/questionlib.php ");
+ require_once("$CFG->libdir/questionlib.php");
$success = $success && question_delete_course($course);
}
}
@@ -917,7 +917,7 @@ function quiz_upgrade($oldversion) {
//If the course doesn't exist, orphan category found!
//Process it with question_delete_course(). It will do all the hard work.
if (!record_exists('course', 'id', $course->id)) {
- require_once("$CFG->libdir/questionlib.php ");
+ require_once("$CFG->libdir/questionlib.php");
$success = $success && question_delete_course($course);
}
}

0 comments on commit d7a7b5b

Please sign in to comment.