aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-11-28 15:32:17 +0100
committerVincent Petry <pvince81@owncloud.com>2014-11-28 15:33:21 +0100
commit219a129cd6bae62a7fcaedb36a0adc71b615e644 (patch)
tree3cb1580400acfa4dcf190204251d1858cb22ffe9 /lib
parent5c8e5e223d07780196680732544fa66a5fa2503c (diff)
downloadnextcloud-server-219a129cd6bae62a7fcaedb36a0adc71b615e644.tar.gz
nextcloud-server-219a129cd6bae62a7fcaedb36a0adc71b615e644.zip
Close cursor after checking for existing config values
Diffstat (limited to 'lib')
-rw-r--r--lib/private/allconfig.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php
index 421db566866..00defd920d7 100644
--- a/lib/private/allconfig.php
+++ b/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)) {