MDL-36211 prevent session problems in installer

This commit is contained in:
Petr Škoda 2012-11-21 08:34:28 +01:00
parent 5705796638
commit bef1207302

View File

@ -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) {