fix setscope
Signed-off-by: Robin Appelman <icewind@owncloud.com>
This commit is contained in:
parent
da63af8b02
commit
7e9e5db496
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue