return null in model if recipe doesn't exists

This commit is contained in:
Thomas Rubini 2023-01-24 09:51:49 +01:00
parent 66d4a89bdb
commit 1388fc1205
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -37,6 +37,7 @@ final class RecipeModel
public function getFullRecipeWithApprs($I_id)
{
$A_recipe = self::getFullRecipe($I_id);
if ($A_recipe === null)return null;
$O_apprModel = new ApprModel();