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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user