Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-08-13 16:07:43 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-08-13 16:07:43 +0300
commit1c04575405ebac0ece44f02b16a7b164d71c09fe (patch)
tree4d52418b817ec94dec6a35bde36ac4eb860766b8 /lib
parent133e08bf94ca41f28e7b0c354dfef6e05a6bed25 (diff)
The token id is an int
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/PushController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/PushController.php b/lib/Controller/PushController.php
index ce434ac..eb2c58a 100644
--- a/lib/Controller/PushController.php
+++ b/lib/Controller/PushController.php
@@ -154,7 +154,7 @@ class PushController extends OCSController {
return new DataResponse([], Http::STATUS_UNAUTHORIZED);
}
- $tokenId = $this->session->get('token-id');
+ $tokenId = (int)$this->session->get('token-id');
try {
$token = $this->tokenProvider->getTokenById($tokenId);
} catch (InvalidTokenException $e) {