mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
chore: Adapt syntax for PHP<8
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
b2ba4c8d40
commit
54fc2caf0d
1 changed files with 1 additions and 1 deletions
|
|
@ -454,7 +454,7 @@ class Session implements IUserSession, Emitter {
|
|||
// Refuse session tokens here, only app tokens are handled
|
||||
return false;
|
||||
}
|
||||
} catch (ExpiredTokenException) {
|
||||
} catch (ExpiredTokenException $e) {
|
||||
// Just return on an expired token no need to check further or record a failed login
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue