diff options
Diffstat (limited to 'lib/private/Security/CredentialsManager.php')
-rw-r--r-- | lib/private/Security/CredentialsManager.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Security/CredentialsManager.php b/lib/private/Security/CredentialsManager.php index ace8e6889ec..a40a7e1d88e 100644 --- a/lib/private/Security/CredentialsManager.php +++ b/lib/private/Security/CredentialsManager.php @@ -84,7 +84,10 @@ class CredentialsManager implements ICredentialsManager { ->where($qb->expr()->eq('user', $qb->createNamedParameter((string)$userId))) ->andWhere($qb->expr()->eq('identifier', $qb->createNamedParameter($identifier))) ; - $result = $qb->execute()->fetch(); + + $qResult = $qb->execute(); + $result = $qResult->fetch(); + $qResult->closeCursor(); if (!$result) { return null; |