Merge pull request #13772 from owncloud/closecursor-allconfig

Close cursor after checking for existing config values
remotes/origin/create-share-target-reuse
Vincent Petry 2015-01-29 19:31:21 +07:00
commit 790622e9fd
1 changed files with 1 additions and 0 deletions

@ -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)) {