mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-36211 prevent session problems in installer
This commit is contained in:
parent
5705796638
commit
bef1207302
@ -343,7 +343,9 @@ abstract class moodle_database {
|
||||
}
|
||||
// Always terminate sessions here to make it consistent,
|
||||
// this is needed because we need to save session to db before closing it.
|
||||
session_get_instance()->write_close();
|
||||
if (function_exists('session_get_instance')) {
|
||||
session_get_instance()->write_close();
|
||||
}
|
||||
$this->used_for_db_sessions = false;
|
||||
|
||||
if ($this->temptables) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user