From f95310d2242f0d95a496f0c2aa67c48c609cafb5 Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Mon, 13 Mar 2006 16:32:22 +0000 Subject: [PATCH] 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.) --- backup/restorelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5