Skip to content
Snippets Groups Projects
Commit d6786eac authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

$_GET["ingredients"]

parent ba140a48
Branches
No related tags found
No related merge requests found
......@@ -96,11 +96,7 @@
$search["tempsPreparation"]=($_GET["tempsPreparation"]);
}
if(isset($_GET["ingredients"]) AND !empty($_GET["ingredients"])){
$array = array();
foreach($_GET["ingredients"] as $ingredient){
$array[] = $ingredient;
}
$search["ingredients"]=$array;
$search["ingredients"]=$_GET["ingredients"];
}
$recettes = Recette::getRecettes($search);
foreach($recettes as $recette){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment