Prevent multiple execution of restore. Bug 3291

(http://moodle.org/bugs/bug.php?op=show&bugid=3291)

Merged from MOODLE_14_STABLE
This commit is contained in:
stronk7
2005-05-18 18:07:02 +00:00
parent 75da9c2023
commit 6472f6357f
+8
View File
@@ -129,7 +129,15 @@
}
} else if ($launch == "check") {
include_once("restore_check.html");
//To avoid multiple restore executions...
$SESSION->cancontinue = true;
} else if ($launch == "execute") {
//Prevent multiple restore executions...
if (empty($SESSION->cancontinue)) {
error("Multiple restore execution not allowed!");
}
//Unset this for the future
unset($SESSION->cancontinue);
include_once("restore_execute.html");
}
print_simple_box_end();