diff --git a/backup/restore_execute.html b/backup/restore_execute.html index d5893fc28fe..ab14271c2f7 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 8d889efaa70..9384518e0d0 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');