From: Adam Magness Date: Tue, 5 Dec 2017 11:58:57 +0000 (-0500) Subject: remove index X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=22a3c7ad7d5205382961fa4e569b1af3a4d585d7;p=friendica.git remove index remove unneeded index --- 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;