(http://moodle.org/bugs/bug.php?op=show&bugid=5711)
Merged from MOODLE_16_STABLE
if (!$launch) {
include_once("restore_precheck.html");
} else if ($launch == "form") {
- if ($SESSION->restore->importing) {
+ if (!empty($SESSION->restore->importing)) {
// set up all the config stuff and skip asking the user about it.
restore_setup_for_check($SESSION->restore,$backup_unique_code);
include_once("restore_execute.html");