summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-01-29 19:31:21 +0100
committerVincent Petry <pvince81@owncloud.com>2015-01-29 19:31:21 +0100
commit790622e9fd9516d7fe266b6664296513aaec0dcc (patch)
treec7fdac5e949cd38cd2334da784c511a778037064
parentb1d8d88df85030bd8c539307fab11db131732558 (diff)
parent219a129cd6bae62a7fcaedb36a0adc71b615e644 (diff)
downloadnextcloud-server-790622e9fd9516d7fe266b6664296513aaec0dcc.tar.gz
nextcloud-server-790622e9fd9516d7fe266b6664296513aaec0dcc.zip
Merge pull request #13772 from owncloud/closecursor-allconfig
Close cursor after checking for existing config values
-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)) {