From c17cd7b1cc01f65bd7d9755d94f08af7e1cd0d29 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sat, 4 Aug 2012 09:12:12 +0100 Subject: [PATCH] Fixed variable reference bug --- src/Oauth2/Authentication/Server.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Oauth2/Authentication/Server.php b/src/Oauth2/Authentication/Server.php index 7a88b9c9..d5d7e764 100644 --- a/src/Oauth2/Authentication/Server.php +++ b/src/Oauth2/Authentication/Server.php @@ -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);