From: sam_marshall Date: Mon, 13 Mar 2006 16:32:22 +0000 (+0000) Subject: Corrected line that would cause restore_create_modules to return True if the first... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f95310d2242f0d95a496f0c2aa67c48c609cafb5;p=moodle.git 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.) --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 2462aac269..31ed3dbeab 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -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;