diff options
Diffstat (limited to 'apps/oauth2/lib/Db/ClientMapper.php')
-rw-r--r-- | apps/oauth2/lib/Db/ClientMapper.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/oauth2/lib/Db/ClientMapper.php b/apps/oauth2/lib/Db/ClientMapper.php index 8d1f26ce471..8531f6d007c 100644 --- a/apps/oauth2/lib/Db/ClientMapper.php +++ b/apps/oauth2/lib/Db/ClientMapper.php @@ -44,11 +44,9 @@ class ClientMapper extends Mapper { ->from($this->tableName) ->where($qb->expr()->eq('client_identifier', $qb->createNamedParameter($clientIdentifier))); $result = $qb->execute(); - $rows = $result->fetchAll(); + $row = $result->fetch(); $result->closeCursor(); - return array_map(function ($row) { - return Client::fromRow($row); - }, $rows); + return Client::fromRow($row); } /** |