From 6f66a44e69769b41ff7102b595a1ec678553aa63 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Wed, 25 Jan 2023 22:40:58 +0100 Subject: [PATCH] do not store difficulty as author --- Models/RecipeModel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Models/RecipeModel.php b/Models/RecipeModel.php index e9eb92b..bad69af 100644 --- a/Models/RecipeModel.php +++ b/Models/RecipeModel.php @@ -134,10 +134,10 @@ final class RecipeModel return $this->A_INGREDIENTS; } public function getDifficulty(){ - if($this->O_AUTHOR === null){ - $this->O_AUTHOR = DifficultyModel::getByID($this->I_DIFFICULTY_ID); + if($this->O_DIFFICULTY === null){ + $this->O_DIFFICULTY = DifficultyModel::getByID($this->I_DIFFICULTY_ID); } - return $this->O_AUTHOR; + return $this->O_DIFFICULTY; } public function getApprs(){