fix typo in SQL query

This commit is contained in:
Thomas Rubini 2023-01-25 23:12:08 +01:00
parent 83b3cd0bd5
commit 00e62b7a3e
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -50,7 +50,7 @@ final class RecipeModel
public function update()
{
$O_model = Model::get();
$stmt = $O_model->prepare("UPDATE RECIPE SET NAME=:name, TIME=:time, DESCR=:descr, RECIPE:recipe, DIFFICULTY_ID=:difficulty_id, AUTHOR_ID=:author_id WHERE ID=:id");
$stmt = $O_model->prepare("UPDATE RECIPE SET NAME=:name, TIME=:time, DESCR=:descr, RECIPE=:recipe, DIFFICULTY_ID=:difficulty_id, AUTHOR_ID=:author_id WHERE ID=:id");
$stmt->bindParam("id", $this->I_ID);
$stmt->bindParam("name", $this->S_NAME);
$stmt->bindParam("time", $this->I_TIME);