diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-11-28 15:32:17 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-11-28 15:33:21 +0100 |
commit | 219a129cd6bae62a7fcaedb36a0adc71b615e644 (patch) | |
tree | 3cb1580400acfa4dcf190204251d1858cb22ffe9 /lib | |
parent | 5c8e5e223d07780196680732544fa66a5fa2503c (diff) | |
download | nextcloud-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.php | 1 |
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)) { |