Skip to content

Commit

Permalink
fix: Really send mail on production instance 🤣
Browse files Browse the repository at this point in the history
  • Loading branch information
kumy committed Oct 15, 2023
1 parent 8d10df3 commit 7691970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/app/GeoKrety/Email/BasePHPMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected function setTo(?User $user, bool $force = false, bool $realRecipient =
$this->recipients[] = $_user;
}
// }
if ($realRecipient) {
if ($realRecipient or GK_IS_PRODUCTION) {
if (!$user->hasEmail() or (!$user->isEmailValid() and !$force)) {
return;
}
Expand Down

0 comments on commit 7691970

Please sign in to comment.