mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Changed a forbidden null detected by the new AdoDB libraries.
This commit is contained in:
parent
4a7ba9ab87
commit
7142bf514d
@ -254,7 +254,7 @@
|
||||
return $info;
|
||||
}
|
||||
|
||||
//This function read the xml file and store its data from the sections in a object
|
||||
//This function read the xml file and store its data from the blocks in a object
|
||||
function restore_read_xml_blocks ($xml_file) {
|
||||
|
||||
//We call the main read_xml function, with todo = BLOCKS
|
||||
@ -833,7 +833,7 @@
|
||||
$course_module->indent = $mod->indent;
|
||||
$course_module->visible = $mod->visible;
|
||||
$course_module->groupmode = $mod->groupmode;
|
||||
$course_module->instance = null;
|
||||
$course_module->instance = 0;
|
||||
//NOTE: The instance (new) is calculated and updated in db in the
|
||||
// final step of the restore. We don't know it yet.
|
||||
//print_object($course_module); //Debug
|
||||
|
Loading…
x
Reference in New Issue
Block a user