mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
Fixed errors with handling database calls
This commit is contained in:
parent
95931abd6b
commit
e191566260
@ -141,7 +141,7 @@ class Server
|
|||||||
|
|
||||||
if ($accessToken) {
|
if ($accessToken) {
|
||||||
|
|
||||||
$result = $this->_dbCall('validateAccessToken', array($accessToken));
|
$result = $this->_dbCall('validateAccessToken', $accessToken);
|
||||||
|
|
||||||
if ($result === false)
|
if ($result === false)
|
||||||
{
|
{
|
||||||
@ -155,7 +155,7 @@ class Server
|
|||||||
$this->_typeId = $result['owner_id'];
|
$this->_typeId = $result['owner_id'];
|
||||||
|
|
||||||
// Get the scopes
|
// Get the scopes
|
||||||
$this->_scopes = $this->_dbCall('sessionScopes', array($result['id']));
|
$this->_scopes = $this->_dbCall('sessionScopes', $result['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user