From 22a3c7ad7d5205382961fa4e569b1af3a4d585d7 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Tue, 5 Dec 2017 06:58:57 -0500 Subject: [PATCH] remove index remove unneeded index --- src/Network/FKOAuthDataStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/FKOAuthDataStore.php b/src/Network/FKOAuthDataStore.php index b836a4d01c..126f140bdf 100644 --- a/src/Network/FKOAuthDataStore.php +++ b/src/Network/FKOAuthDataStore.php @@ -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; -- 2.39.5