From 32d3733fd67c2103a18ff841cee7c044cc57c7bd Mon Sep 17 00:00:00 2001 From: William Date: Tue, 3 May 2022 12:02:33 +0200 Subject: [PATCH] Commit --- app/view/template/header.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/view/template/header.php b/app/view/template/header.php index 6c313c6..cd0e338 100644 --- a/app/view/template/header.php +++ b/app/view/template/header.php @@ -58,12 +58,8 @@
session->getFlashedMessages(); - if ($msgs) + foreach ($this->session->getFlashedMessages() as $msg) { - foreach ($msgs as $msg) - { - echo "
{$msg["message"]}
"; - } + echo "
{$msg["message"]}
"; } ?> \ No newline at end of file