mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-13554 Fix from Mark Nielsen for bad block backups
This commit is contained in:
parent
5b2f502112
commit
53f5364123
1 changed files with 5 additions and 0 deletions
|
@ -800,6 +800,11 @@
|
|||
continue;
|
||||
}
|
||||
$getid = backup_getid($restore->backup_unique_code, $parts[1], $instance->pageid);
|
||||
|
||||
if (empty($getid->new_id)) {
|
||||
// Failed, perhaps the module was not included in the restore MDL-13554
|
||||
continue;
|
||||
}
|
||||
$instance->pageid = $getid->new_id;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue