close cursor after loading a token

This commit is contained in:
Christoph Wurst 2016-06-17 16:13:11 +02:00
parent 491e2654eb
commit b0f2878f6e
No known key found for this signature in database
GPG Key ID: FEECD2543CA6EAF0
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class DefaultTokenMapper extends Mapper {
->execute();
$data = $result->fetch();
$result->closeCursor();
if ($data === false) {
throw new DoesNotExistException('token does not exist');
}