From 27f60090f62a6dd4d828443d9e429683b00285cd Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 3 Jun 2006 20:16:19 +0000 Subject: [PATCH] And some more (the last) notices out! Bug 5713. (http://moodle.org/bugs/bug.php?op=show&bugid=5713) --- 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 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');