Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
optimus
api
Commits
bf478d6c
Commit
bf478d6c
authored
Nov 27, 2020
by
Lionel VEST
Browse files
*
parent
06248982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
resources/settings.php
resources/settings.php
+1
-1
No files found.
resources/settings.php
View file @
bf478d6c
...
...
@@ -39,7 +39,7 @@ function create($connection,$input)
if
(
!
preg_match
(
'/^[a-z0-9_]+$/'
,
$key
))
return
array
(
"code"
=>
400
,
"message"
=>
"Le réglage "
.
$key
.
" n'est pas au bon format"
);
$settings
=
$connection
->
prepare
(
"REPLACE INTO `"
.
$input
->
db
.
"`.settings VALUES(:user,:module,:setting,:value)"
);
$settings
->
bindValue
(
':user'
,
$input
->
user
,
PDO
::
PARAM_STR
);
$settings
->
bindValue
(
':user'
,
$input
->
body
->
user
,
PDO
::
PARAM_STR
);
$settings
->
bindValue
(
':module'
,
$input
->
body
->
module
,
PDO
::
PARAM_STR
);
$settings
->
bindValue
(
':setting'
,
$key
,
PDO
::
PARAM_STR
);
$settings
->
bindValue
(
':value'
,
json_encode
(
$value
),
PDO
::
PARAM_STR
);
...
...
Write
Preview
Markdown
is supported
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