From 410c459db0e5fc19a8e8933ea65828759b8ea79a Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 3 Jun 2006 20:18:02 +0000 Subject: [PATCH] And some more (the last) notices out! Bug 5713. (http://moodle.org/bugs/bug.php?op=show&bugid=5713) Merged from MOODLE_16_STABLE --- backup/restore_execute.html | 3 +-- backup/restorelib.php | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/restore_execute.html b/backup/restore_execute.html index d5893fc28f..ab14271c2f 100644 --- a/backup/restore_execute.html +++ b/backup/restore_execute.html @@ -48,8 +48,7 @@ error ("An error has occurred and the restore could not be completed!"); } - if (!$restore->importing) { - echo $output; + if (empty($restore->importing)) { //Print final message print_simple_box(get_string("restorefinished"),"center"); } else { diff --git a/backup/restorelib.php b/backup/restorelib.php index 8d889efaa7..9384518e0d 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -5209,6 +5209,7 @@ if (!defined('RESTORE_SILENTLY')) { echo '
  • '.get_string('creatingblocks').'
  • '; } + $course_header->blockinfo = !empty($course_header->blockinfo) ? $course_header->blockinfo : NULL; if (!$status = restore_create_blocks($restore, $info->backup_block_format, $course_header->blockinfo, $xml_file)) { if (!defined('RESTORE_SILENTLY')) { notify('Error while creating the course blocks'); -- 2.39.5