From 272b4fae86b176acb26a96c01e94b474a7aa1dcb Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Thu, 26 Jan 2023 17:35:56 +0100 Subject: [PATCH] use getSteps() in frontend --- Views/recipe/edit.php | 29 +++++++++++++---------------- Views/recipe/view.php | 2 +- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/Views/recipe/edit.php b/Views/recipe/edit.php index da1e5cc..8cb218d 100644 --- a/Views/recipe/edit.php +++ b/Views/recipe/edit.php @@ -5,7 +5,7 @@ if ($O_recipe === null) { $S_name = null; $I_time = null; $S_descr = null; - $S_recipe = null; + $A_steps = array(); $S_difficultyName = null; $A_parts = array(); $A_ingredients = array(); @@ -13,7 +13,7 @@ if ($O_recipe === null) { $S_name = $O_recipe->S_NAME; $I_time = $O_recipe->I_TIME; $S_descr = $O_recipe->S_DESCR; - $S_recipe = $O_recipe->S_RECIPE; + $A_steps = $O_recipe->getSteps(); $S_difficultyName = $O_recipe->getDifficulty()->S_NAME; $A_parts = array(); // TODO $A_ingredients = $O_recipe->getIngredients(); @@ -109,28 +109,25 @@ if ($O_recipe === null) {