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

fixed condition

parent 9c2a1a06
No related branches found
No related tags found
No related merge requests found
......@@ -213,7 +213,7 @@ function getRecettes($search=""){
// On va récupérer les recettes selon la recherche
// Si $search est une liste, on va chercher selon son contenu
// $search["categoryId"], $search["name"], ["ingredientId"], ["difficulte"], ["time"], ["auteurId"]
if(is_array($search)){
if(is_array($search) && !empty($search)){
// https://stackoverflow.com/a/18603279
$categoryId = $search["categoryId"] ?? "";
$name = $search["name"] ?? "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment