Check for boolean value
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6b97f6af48
commit
6c92e4d8ae
|
@ -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 New Issue