From 96a20267f72da64cf56fbd8cfa5992fe544796bb Mon Sep 17 00:00:00 2001 From: Tim Krehan Date: Mon, 3 Jun 2019 16:02:41 +0200 Subject: [PATCH] fixed recipe import issue --- php/classes.recipe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/classes.recipe.php b/php/classes.recipe.php index 7723216..68b4440 100644 --- a/php/classes.recipe.php +++ b/php/classes.recipe.php @@ -23,7 +23,7 @@ function getID($Name){ include $_SESSION["docroot"].'/php/connect.php'; $selectQuery = $mysqli->prepare("SELECT `ID` FROM `Einheit` WHERE `Name` = ?;"); - $selectQuery->bind_param("s", "$Name"); + $selectQuery->bind_param("s", $Name); $selectQuery->execute(); $result = $selectQuery->get_result(); $ID = $result->fetch_assoc();