Skip to content
Snippets Groups Projects
Unverified Commit 7e9e5db4 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix setscope

parent da63af8b
No related branches found
No related tags found
No related merge requests found
...@@ -163,9 +163,9 @@ class DefaultToken extends Entity implements IToken { ...@@ -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));
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment