mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Check for boolean value
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6b97f6af48
commit
6c92e4d8ae
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class Token implements IToken {
|
|||
}
|
||||
|
||||
public function hasBeenAccessed(): bool {
|
||||
return $this->data['accessed'] === '1';
|
||||
return (bool) $this->data['accessed'];
|
||||
}
|
||||
|
||||
public function getEditor(): string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue