Skip to content

Commit

Permalink
Deleting $SESSION structures before starting import.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Apr 10, 2006
1 parent eb628ba commit 8847a82
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions course/import.php
Expand Up @@ -13,6 +13,23 @@
error("You are not allowed to look at this page");
}

/// Always we begin an import, we delete all backup/restore/import session structures
if (isset($SESSION->course_header)) {
unset ($SESSION->course_header);
}
if (isset($SESSION->info)) {
unset ($SESSION->info);
}
if (isset($SESSION->backupprefs)) {
unset ($SESSION->backupprefs);
}
if (isset($SESSION->restore)) {
unset ($SESSION->restore);
}
if (isset($SESSION->import_preferences)) {
unset ($SESSION->import_preferences);
}

$strimport = get_string('import');

print_header($course->fullname.': '.$strimport, $course->fullname.': '.$strimport,
Expand Down

0 comments on commit 8847a82

Please sign in to comment.