mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
merged fix for restore support of user data from backups pre granular backup
This commit is contained in:
parent
a3fd474190
commit
ccda44599a
@ -5346,7 +5346,7 @@
|
||||
*/
|
||||
function restore_userdata_selected($restore,$modname,$modid) {
|
||||
// check first for per instance array
|
||||
if (!empty($restore->mods[$modname]->instances)) { // supports per instance
|
||||
if (!empty($restore->mods[$modname]->granular)) { // supports per instance
|
||||
return array_key_exists($modid,$restore->mods[$modname]->instances)
|
||||
&& !empty($restore->mods[$modname]->instances[$modid]->userinfo);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user