From 9cf82497a6580cfaa76b036b23e50d125f91d930 Mon Sep 17 00:00:00 2001 From: Capelier-Marla Date: Mon, 23 Jan 2023 15:11:44 +0100 Subject: [PATCH] fixed typo + changed placeholder name --- Models/ApprModel.php | 6 +++--- Views/appreciations/view.php | 2 +- Views/recipe/view.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Models/ApprModel.php b/Models/ApprModel.php index e716e52..73901b4 100644 --- a/Models/ApprModel.php +++ b/Models/ApprModel.php @@ -12,11 +12,11 @@ final class ApprModel { "); $stmt->bindParam("recipe_id", $I_recipe_id); $stmt->execute(); - + $rows = $stmt->fetchAll(); - + foreach($rows as &$row) { - $row["AUTHOR_IMG_LINK"] = "/static/img/user.jpg"; + $row["AUTHOR_IMG_LINK"] = "/static/img/users/1.jpg"; } return $rows; diff --git a/Views/appreciations/view.php b/Views/appreciations/view.php index 0fce1a5..0e90f47 100644 --- a/Views/appreciations/view.php +++ b/Views/appreciations/view.php @@ -17,7 +17,7 @@ diff --git a/Views/recipe/view.php b/Views/recipe/view.php index 32ade32..b10b8ec 100644 --- a/Views/recipe/view.php +++ b/Views/recipe/view.php @@ -2,7 +2,7 @@
- " alt="Image d'illustration de la recette"> + " alt="Image d'illustration de la recette">
@@ -39,7 +39,7 @@ "appreciations/view", array( "APPRS" => $A_view["APPRS"], - "ADMIN" => $A_view["ADMIN"] + "ADMIN" => $A_view["ADMIN"] ) ); ?>