Skip to content

Commit

Permalink
Fixing typo causing some (a few) sites to break on upgrade. Credit
Browse files Browse the repository at this point in the history
goes to Rafa Gutierrez. MDL-9316
  • Loading branch information
stronk7 committed Apr 12, 2007
1 parent 35decbd commit d7a7b5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/quiz/db/mysql.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ function quiz_upgrade($oldversion) {
//If the course doesn't exist, orphan category found! //If the course doesn't exist, orphan category found!
//Process it with question_delete_course(). It will do all the hard work. //Process it with question_delete_course(). It will do all the hard work.
if (!record_exists('course', 'id', $course->id)) { 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); $success = $success && question_delete_course($course);
} }
} }
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/db/postgres7.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ function quiz_upgrade($oldversion) {
//If the course doesn't exist, orphan category found! //If the course doesn't exist, orphan category found!
//Process it with question_delete_course(). It will do all the hard work. //Process it with question_delete_course(). It will do all the hard work.
if (!record_exists('course', 'id', $course->id)) { 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); $success = $success && question_delete_course($course);
} }
} }
Expand Down

0 comments on commit d7a7b5b

Please sign in to comment.