diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-01-29 19:31:21 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-01-29 19:31:21 +0100 |
commit | 790622e9fd9516d7fe266b6664296513aaec0dcc (patch) | |
tree | c7fdac5e949cd38cd2334da784c511a778037064 | |
parent | b1d8d88df85030bd8c539307fab11db131732558 (diff) | |
parent | 219a129cd6bae62a7fcaedb36a0adc71b615e644 (diff) | |
download | nextcloud-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.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)) { |