The report_session_error() fix does not work all the times. Proper fix here.
This commit is contained in:
+2
-1
@@ -6291,7 +6291,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";
|
||||
}
|
||||
@@ -6307,6 +6307,7 @@ function report_session_error() {
|
||||
}
|
||||
unset($_SESSION['USER']);
|
||||
unset($GLOBALS['USER']);
|
||||
unset($SESSION->session_test);
|
||||
redirect($FULLME, get_string('sessionerroruser', 'error'), 2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user