Little bug fix

This commit is contained in:
Alex Bilbie 2014-01-17 10:37:05 +00:00
parent 20df1f50a6
commit 9de979a4ee

View File

@ -156,11 +156,13 @@ class Session
private function formatScopes($unformated = [])
{
$scopes = [];
if (is_array($unformated)) {
foreach ($unformated as $scope) {
if ($scope instanceof Scope) {
$scopes[$scope->getId()] = $scope;
}
}
}
return $scopes;
}