From: sam_marshall Date: Mon, 10 Apr 2006 11:49:48 +0000 (+0000) Subject: Changing to use require_param meant that restore session was not cleared, causing... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bb2848749a6bf7b46840e274fbb65b58959a9d09;p=moodle.git Changing to use require_param meant that restore session was not cleared, causing a 2nd restore in succession of same backup to fail. One-line tweak fixes it - I think (I think it's ok but filed as bug 5145 so the appropriate person can check if I messed up) --- diff --git a/backup/restore_check.html b/backup/restore_check.html index 1461f729ef..5537c04d2a 100644 --- a/backup/restore_check.html +++ b/backup/restore_check.html @@ -16,7 +16,7 @@ //If restore session info exists, but we are posting parameters //manually, this has prioriry - if (isset($restore) and isset($restore_restoreto)) { + if (isset($restore) and isset($_POST['restore_restoreto'])) { unset($restore); }