]> git.mxchange.org Git - friendica.git/commitdiff
remove index
authorAdam Magness <adam.magness@gmail.com>
Tue, 5 Dec 2017 11:58:57 +0000 (06:58 -0500)
committerAdam Magness <adam.magness@gmail.com>
Tue, 5 Dec 2017 11:58:57 +0000 (06:58 -0500)
remove unneeded index

src/Network/FKOAuthDataStore.php

index b836a4d01c2ec4fdf2a45f53174990b1e27a96b3..126f140bdf76cd6f57dfb35ef2f4b736f78b235d 100644 (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;