Close cursor after checking for existing config values

This commit is contained in:
Vincent Petry 2014-11-28 15:32:17 +01:00
parent 5c8e5e223d
commit 219a129cd6
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ class AllConfig implements \OCP\IConfig {
'WHERE `userid` = ? AND `appid` = ? AND `configkey` = ?';
$result = $this->connection->executeQuery($sql, array($userId, $appName, $key));
$oldValue = $result->fetchColumn();
$result->closeCursor();
$exists = $oldValue !== false;
if($oldValue === strval($value)) {