mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +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 {
|
||||
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,
|
||||
// do not create the record here, let the manager do it after session init.
|
||||
$this->failed = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue