From f0e36e6c9441e2860221dc7ec152e2278e5d99a9 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 6 Jul 2012 19:29:20 +0100 Subject: [PATCH] Fixed invalid variable name --- src/oauth2server/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oauth2server/Server.php b/src/oauth2server/Server.php index ea78fb12..3faf92b6 100644 --- a/src/oauth2server/Server.php +++ b/src/oauth2server/Server.php @@ -182,7 +182,7 @@ class Server public function newAuthoriseRequest(string $typeId, array $authoriseParams) { // Check if the user already has an access token - $accessToken = $this->db->hasAccessToken($userId, + $accessToken = $this->db->hasAccessToken($typeId, $authoriseParams['client_id']); if ($accessToken !== false) {