mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixing typo causing some (a few) sites to break on upgrade. Credit
goes to Rafa Gutierrez. MDL-9316 Merged from MOODLE_18_STABLE
This commit is contained in:
parent
8a3719f517
commit
73710a4679
@ -842,7 +842,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);
|
||||
}
|
||||
}
|
||||
|
@ -922,7 +922,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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user