Index: restorelib.php =================================================================== RCS file: /cvsroot/moodle/moodle/backup/restorelib.php,v retrieving revision 1.283.2.13 diff -u -r1.283.2.13 restorelib.php --- restorelib.php 28 Dec 2007 18:57:45 -0000 1.283.2.13 +++ restorelib.php 2 Jan 2008 19:18:40 -0000 @@ -939,6 +939,12 @@ //Get section id when restoring in existing course $rec = get_record("course_sections","course",$restore->course_id, "section",$section->section); + + // update course section summary if empty and imported course + if( empty($rec->summary) and !empty($section->summary) ){ + $rec->summary = $section->summary; + update_record("course_sections", $rec); + } //If that section doesn't exist, get section 0 (every mod will be //asigned there if(!$rec) {