]> source.dussan.org Git - nextcloud-server.git/commitdiff
Close cursor after checking for existing config values
authorVincent Petry <pvince81@owncloud.com>
Fri, 28 Nov 2014 14:32:17 +0000 (15:32 +0100)
committerVincent Petry <pvince81@owncloud.com>
Fri, 28 Nov 2014 14:33:21 +0000 (15:33 +0100)
lib/private/allconfig.php

index 421db5668668d14dc0401d79f59363b830659aef..00defd920d758b3d8f36afdfd72f0f322a34d38f 100644 (file)
@@ -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)) {