From 7142bf514dbe55f972328720841b0c3d7b576c98 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 18 Feb 2005 16:57:58 +0000 Subject: [PATCH] Changed a forbidden null detected by the new AdoDB libraries. --- backup/restorelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/restorelib.php b/backup/restorelib.php index 50f9d4e11b0..d3fc0bc330b 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -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