fix setscope

Signed-off-by: Robin Appelman <icewind@owncloud.com>
This commit is contained in:
Robin Appelman 2016-08-04 12:49:41 +02:00 committed by Robin Appelman
parent da63af8b02
commit 7e9e5db496
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
1 changed files with 2 additions and 2 deletions

View File

@ -163,9 +163,9 @@ class DefaultToken extends Entity implements IToken {
public function setScope($scope) { public function setScope($scope) {
if (is_string($scope)) { if (is_string($scope)) {
$this->scope = $scope; parent::setScope($scope);
} else { } else {
return parent::setScope(json_encode($scope)); parent::setScope(json_encode($scope));
} }
} }
} }