From: Vincent Petry Date: Fri, 28 Nov 2014 14:32:17 +0000 (+0100) Subject: Close cursor after checking for existing config values X-Git-Tag: v8.0.0RC1~5^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=219a129cd6bae62a7fcaedb36a0adc71b615e644;p=nextcloud-server.git Close cursor after checking for existing config values --- 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)) {