Merge branch 'w47_MDL-36211_m24_sesslocking' of git://github.com/skodak/moodle

This commit is contained in:
Dan Poltawski
2012-11-21 15:44:34 +08:00
+3 -1
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) {