From 307964d571014706a0346c31255b7b3bbed98c0d Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 18 Jun 2013 18:27:34 +0100 Subject: [PATCH] Fixed missing $this --- src/League/OAuth2/Server/Storage/DBAL/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/League/OAuth2/Server/Storage/DBAL/Session.php b/src/League/OAuth2/Server/Storage/DBAL/Session.php index 58f8e515..7423601f 100644 --- a/src/League/OAuth2/Server/Storage/DBAL/Session.php +++ b/src/League/OAuth2/Server/Storage/DBAL/Session.php @@ -150,7 +150,7 @@ class Session implements SessionInterface public function getAuthCodeScopes($oauthSessionAuthCodeId) { - $stmt = $db->prepare('SELECT scope_id FROM `oauth_session_authcode_scopes` WHERE oauth_session_authcode_id = :authCodeId'); + $stmt = $this->db->prepare('SELECT scope_id FROM `oauth_session_authcode_scopes` WHERE oauth_session_authcode_id = :authCodeId'); $stmt->bindValue(':authCodeId', $oauthSessionAuthCodeId); $stmt->execute();