mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 11:23:06 +02:00
MDL-13554 Fix from Mark Nielsen for bad block backups
This commit is contained in:
parent
b352b2e9c2
commit
eff1ecb4f1
@ -848,6 +848,11 @@ define('RESTORE_GROUPS_GROUPINGS', 3);
|
||||
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…
x
Reference in New Issue
Block a user