Skip to content
Browse files

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.)
  • Loading branch information...
1 parent 3a8ad57 commit f95310d2242f0d95a496f0c2aa67c48c609cafb5 sam_marshall committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/restorelib.php
View
2 backup/restorelib.php
@@ -2476,7 +2476,7 @@ function restore_create_modules($restore,$xml_file) {
$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;

0 comments on commit f95310d

Please sign in to comment.
Something went wrong with that request. Please try again.