mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-66151 core: fix destroy method.
This commit is contained in:
parent
e1e15eb4a7
commit
70ab6b9a28
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class database extends handler implements SessionHandlerInterface {
|
|||
|
||||
#[\Override]
|
||||
public function destroy(string $id): bool {
|
||||
if (!$session = $this->get_session_by_sid($id)) {
|
||||
if (!$session = $this->database->get_record('sessions', ['sid' => $id], 'id, sid')) {
|
||||
if ($id == session_id()) {
|
||||
$this->recordid = null;
|
||||
$this->lasthash = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue