mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
course MDL-24250 fixed notice about undefined constant.
This commit is contained in:
parent
1656452410
commit
0b9e4fdcb8
@ -598,6 +598,7 @@ function scorm_upgrade_grades() {
|
||||
*/
|
||||
function scorm_grade_item_update($scorm, $grades=NULL) {
|
||||
global $CFG, $DB;
|
||||
require_once($CFG->dirroot.'/mod/scorm/locallib.php');
|
||||
if (!function_exists('grade_update')) { //workaround for buggy PHP versions
|
||||
require_once($CFG->libdir.'/gradelib.php');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user