From e191566260e12a16dc6a6a9847003bfd144d48cf Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 27 Aug 2012 14:25:18 +0100 Subject: [PATCH] Fixed errors with handling database calls --- src/Oauth2/Resource/Server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Oauth2/Resource/Server.php b/src/Oauth2/Resource/Server.php index f8514d94..41431058 100644 --- a/src/Oauth2/Resource/Server.php +++ b/src/Oauth2/Resource/Server.php @@ -141,7 +141,7 @@ class Server if ($accessToken) { - $result = $this->_dbCall('validateAccessToken', array($accessToken)); + $result = $this->_dbCall('validateAccessToken', $accessToken); if ($result === false) { @@ -155,7 +155,7 @@ class Server $this->_typeId = $result['owner_id']; // Get the scopes - $this->_scopes = $this->_dbCall('sessionScopes', array($result['id'])); + $this->_scopes = $this->_dbCall('sessionScopes', $result['id']); } } else {