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