Close cursor after checking for existing config values

remotes/origin/create-share-target-reuse
Vincent Petry 11 years ago
parent 5c8e5e223d
commit 219a129cd6
  1. 1
      lib/private/allconfig.php

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

Loading…
Cancel
Save