This commit is contained in:
William 2022-05-03 12:02:33 +02:00
parent 3deb8b92b2
commit 32d3733fd6

View File

@ -58,12 +58,8 @@
<div id="main"> <div id="main">
<?php <?php
// display flashed messages // display flashed messages
$msgs = $this->session->getFlashedMessages(); foreach ($this->session->getFlashedMessages() as $msg)
if ($msgs)
{
foreach ($msgs as $msg)
{ {
echo "<div class=\"alert {$msg["type"]}\" role=\"alert\">{$msg["message"]}</div>"; echo "<div class=\"alert {$msg["type"]}\" role=\"alert\">{$msg["message"]}</div>";
} }
}
?> ?>