From cecac3b37c4fc7383610715d1ecff93aed5322a7 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 6 Dec 2007 01:08:25 +0000 Subject: [PATCH] MDL-8270, fixing a warning --- backup/restorelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/restorelib.php b/backup/restorelib.php index 9aa9edb833f4f..46ff3e10dcaae 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -904,7 +904,7 @@ function restore_create_block_instances($restore,$xml_file) { if ($oldid) { backup_putid ($restore->backup_unique_code,"block_instance",$oldid,$instance->id); } - $restore->blockinstanceids[] = $newid; + $restore->blockinstanceids[] = $instance->id; } else { $status = false; break;