mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
Merge branch 'main_MDL-83158' of https://github.com/mattporritt/moodle
This commit is contained in:
commit
a921078df6
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ class database extends handler implements SessionHandlerInterface {
|
||||||
*/
|
*/
|
||||||
public function read(string $sid): string|false {
|
public function read(string $sid): string|false {
|
||||||
try {
|
try {
|
||||||
if (!$record = $this->get_session_by_sid($sid)) {
|
if (!$record = $this->database->get_record('sessions', ['sid' => $sid])) {
|
||||||
// Let's cheat and skip locking if this is the first access,
|
// Let's cheat and skip locking if this is the first access,
|
||||||
// do not create the record here, let the manager do it after session init.
|
// do not create the record here, let the manager do it after session init.
|
||||||
$this->failed = false;
|
$this->failed = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue