Commit bf478d6c authored by Lionel VEST's avatar Lionel VEST
Browse files

*

parent 06248982
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment