Check for boolean value

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-11-28 15:50:23 +01:00
parent 6b97f6af48
commit 6c92e4d8ae
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 1 deletions

View File

@ -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 {