Skip to content
Snippets Groups Projects
Commit ac7bee56 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files
parents cb86c82d 642b173c
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,12 @@
<div class="row pb-3">
<?php
$search=null;
if(isset($_GET["categoryId"])){
if(isset($_GET["categoryId"]) AND !empty($_GET["categoryId"])){
$search["categoryId"]=($_GET["categoryId"]);
}
if(isset($_GET["name"]) AND !empty($_GET["name"])){
$search["name"]=($_GET["name"]);
}
$recettes = getRecettes($search);
foreach($recettes as $recette){
$array["userId"] = $recette["auteurId"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment