From 7e9e5db4963b2ce8e34b6b70347d9cc2dff3f88a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 4 Aug 2016 12:49:41 +0200 Subject: [PATCH] fix setscope Signed-off-by: Robin Appelman --- lib/private/Authentication/Token/DefaultToken.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Authentication/Token/DefaultToken.php b/lib/private/Authentication/Token/DefaultToken.php index b32f9cc986..ea2414e6e1 100644 --- a/lib/private/Authentication/Token/DefaultToken.php +++ b/lib/private/Authentication/Token/DefaultToken.php @@ -163,9 +163,9 @@ class DefaultToken extends Entity implements IToken { public function setScope($scope) { if (is_string($scope)) { - $this->scope = $scope; + parent::setScope($scope); } else { - return parent::setScope(json_encode($scope)); + parent::setScope(json_encode($scope)); } } }