Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
fixed printing mails
Browse files Browse the repository at this point in the history
  • Loading branch information
aleexnl committed Jan 21, 2021
1 parent bebdbd1 commit 470ccd2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions invitations.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,19 @@ function sendMail($mail, $subject, $content, $headers)
<div class="container-messages">
<?php
if ($has_errors) { // If user had errors during log in
foreach ($error_messages as $key => $error)
foreach ($error_messages as $key => $error) {
echo "<div class=msg-error>";
echo $error;
echo "<div>";
echo "<p>" . $error . "</p>";
echo "</div>";
}
}
if (count($sended_mails) > 0) {
foreach ($sended_mails as $key => $mail) {
echo "<div class=msg-success>";
echo "<p>" . $mail . "se ha enviado correctamente.</p>";
echo "</div>";
}
}
foreach ($sended_mails as $key => $mail)
echo "<div class=msg-success>";
echo $mail . "se ha enviado correctamente.";
echo "<div>";
?>

</div>
Expand Down

0 comments on commit 470ccd2

Please sign in to comment.