Merge pull request #13772 from owncloud/closecursor-allconfig
Close cursor after checking for existing config values
This commit is contained in:
commit
790622e9fd
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue