mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Little bug fix
This commit is contained in:
parent
20df1f50a6
commit
9de979a4ee
@ -156,11 +156,13 @@ class Session
|
|||||||
private function formatScopes($unformated = [])
|
private function formatScopes($unformated = [])
|
||||||
{
|
{
|
||||||
$scopes = [];
|
$scopes = [];
|
||||||
|
if (is_array($unformated)) {
|
||||||
foreach ($unformated as $scope) {
|
foreach ($unformated as $scope) {
|
||||||
if ($scope instanceof Scope) {
|
if ($scope instanceof Scope) {
|
||||||
$scopes[$scope->getId()] = $scope;
|
$scopes[$scope->getId()] = $scope;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $scopes;
|
return $scopes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user