From 92ace5c6e599cc4facdfb36118a9a8760f8685ad Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 12 Oct 2012 13:09:56 +0100 Subject: [PATCH] Fixed PHP error with missing bracket Signed-off-by: Alex Bilbie --- src/Oauth2/Client/IDP.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Oauth2/Client/IDP.php b/src/Oauth2/Client/IDP.php index 4f8c324f..fe0b181c 100644 --- a/src/Oauth2/Client/IDP.php +++ b/src/Oauth2/Client/IDP.php @@ -50,10 +50,10 @@ class IDP { 'redirect_uri' => $this->redirectUri, 'state' => $state, 'scope' => is_array($this->scope) ? implode($this->scopeSeperator, $this->scope) : $this->scope, - 'response_type' => isset($options['response_type'] ? $options['response_type'] : 'code', + 'response_type' => isset($options['response_type']) ? $options['response_type'] : 'code', 'approval_prompt' => 'force' // - google force-recheck ); - + header('Location: ' . $this->urlAuthorize().'?'.http_build_query($params)); exit; } @@ -76,13 +76,13 @@ class IDP { case 'refresh_token': $params['refresh_token'] = $code; break; - + } switch ($this->method) { case 'get': - $client = new Client($this->urlAccessToken() .= '?'.http_build_query($params)); + $client = new Client($this->urlAccessToken() .= '?'.http_build_query($params)); $response = $client->get(); break;