diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-11-28 15:50:23 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-11-28 15:50:23 +0100 |
commit | 6c92e4d8aea33dce90e1afd5dc91982619e66686 (patch) | |
tree | e7db6d34da7963755b4eb7bdf9dbf1356b0b81bf /lib/private/DirectEditing/Token.php | |
parent | 6b97f6af48ba8dc029e616cf778a1cbcd0fea001 (diff) | |
download | nextcloud-server-6c92e4d8aea33dce90e1afd5dc91982619e66686.tar.gz nextcloud-server-6c92e4d8aea33dce90e1afd5dc91982619e66686.zip |
Check for boolean value
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/DirectEditing/Token.php')
-rw-r--r-- | lib/private/DirectEditing/Token.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DirectEditing/Token.php b/lib/private/DirectEditing/Token.php index 946699900b7..148621a2cf3 100644 --- a/lib/private/DirectEditing/Token.php +++ b/lib/private/DirectEditing/Token.php @@ -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 { |