Fixed variable reference bug

This commit is contained in:
Alex Bilbie 2012-08-04 09:12:12 +01:00
parent bfab30061e
commit c17cd7b1cc

View File

@ -174,10 +174,7 @@ class Server
// Get and validate scopes
if (isset($authParams['scope']) || isset($_GET['scope'])) {
$scopes = $_GET['scope'];
if (isset($authParams['client_id'])) {
$authParams['scope'];
}
$scopes = (isset($_GET['scope'])) ? $_GET['scope'] : $authParams['scope'];
$scopes = explode($this->config['scope_delimeter'], $scopes);