Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
219a129c
Commit
219a129c
authored
Nov 28, 2014
by
Vincent Petry
Browse files
Close cursor after checking for existing config values
parent
5c8e5e22
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/allconfig.php
View file @
219a129c
...
...
@@ -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
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment