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
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-08-13 16:07:43 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2019-11-24 20:47:27 +0300
commite8ab4aa634bfd7e0e15cd7dbec0277afd7c4f816 (patch)
treec81a4a8c758ffe9dcb024e4f6dbd4f4b721802c1 /lib/Controller/PushController.php
parent2b7eea3c403feaf1a602f18da46498b81b9b75aa (diff)
The token id is an int
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/Controller/PushController.php')
-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) {