diff --git a/gestion/lib/Db/Bdd.php b/gestion/lib/Db/Bdd.php index 7a589fa..33f3fd8 100644 --- a/gestion/lib/Db/Bdd.php +++ b/gestion/lib/Db/Bdd.php @@ -493,6 +493,9 @@ class Bdd { $defuntListConditionPlaceholder = implode(',', array_fill(0, count($defuntsIdRelatedToThanato), '?')); $conditions = $defuntsIdRelatedToThanato; $sql .= " WHERE ".$this->tableprefix."defunt.id IN ($defuntListConditionPlaceholder)"; + } + else{ + return json_encode([]); } } }