summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)) {