Merge pull request #4012 from zeroadam/OAuth-quickfix

Move OAuth to src: remove index
This commit is contained in:
Hypolite Petovan 2017-12-05 07:46:59 -05:00 committed by GitHub
commit 88891d9ae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ class FKOAuthDataStore extends OAuthDataStore
$r = dba::select('tokens', ['id', 'secret'], ['client_id' => $consumer->key, 'id' => $nonce, 'expires' => $timestamp], ['limit' => 1]);
if (DBM::is_result($r)) {
return new OAuthToken($r[0]['id'], $r[0]['secret']);
return new OAuthToken($r['id'], $r['secret']);
}
return null;