mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Corrected line that would cause restore_create_modules to return True if the first module fails to restore, but the second succeeds. (Whereas it would already be False if the first succeeds, but second fails.)
This commit is contained in:
parent
3a8ad5764f
commit
f95310d224
@ -2476,7 +2476,7 @@
|
||||
$modrestore = $mod->modtype."_restore_mods";
|
||||
if (function_exists($modrestore)) {
|
||||
//print_object ($mod); //Debug
|
||||
$status = $modrestore($mod,$restore);
|
||||
$status &= $modrestore($mod,$restore);
|
||||
} else {
|
||||
//Something was wrong. Function should exist.
|
||||
$status = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user