Merge branch 'MDL-81192_402_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_402_STABLE

This commit is contained in:
Andrew Nicols
2024-04-12 11:48:38 +08:00
+3 -1
View File
@@ -89,7 +89,9 @@ class manager {
public static function restart_with_write_lock(bool $readonlysession) {
global $CFG;
self::$requireslockdebug = !$readonlysession;
if (!empty($CFG->enable_read_only_sessions_debug)) {
self::$requireslockdebug = !$readonlysession;
}
if (self::$sessionactive && !self::$handler->requires_write_lock()) {
@self::$handler->abort();