Skip to content

Commit

Permalink
The report_session_error() fix does not work all the times. Proper fi…
Browse files Browse the repository at this point in the history
…x here.(Merged from MOODLE_15_STABLE)
  • Loading branch information
patrickslee committed Sep 6, 2005
1 parent 3bff493 commit 488b946
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -6528,7 +6528,7 @@ function remove_dir($dir, $content_only=false) {
}

function report_session_error() {
global $CFG, $FULLME;
global $CFG, $FULLME, $SESSOIN;
if (empty($CFG->lang)) {
$CFG->lang = "en";
}
Expand All @@ -6544,6 +6544,7 @@ function report_session_error() {
}
unset($_SESSION['USER']);
unset($GLOBALS['USER']);
unset($SESSION->session_test);
redirect($FULLME, get_string('sessionerroruser', 'error'), 2);
}

Expand Down

0 comments on commit 488b946

Please sign in to comment.