From ffb052e19c767e683402c3be50cb8a3f0e911eb2 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 13 Feb 2018 21:27:00 +0200 Subject: [PATCH] Working on tests --- app/Ninja/Mailers/Mailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Mailers/Mailer.php b/app/Ninja/Mailers/Mailer.php index f501b022de8d..26cd5165d71c 100644 --- a/app/Ninja/Mailers/Mailer.php +++ b/app/Ninja/Mailers/Mailer.php @@ -122,7 +122,7 @@ class Mailer $notes = isset($data['notes']) ? $data['notes'] : false; - if ($proposal = $data['proposal']) { + if (! empty($data['proposal'])) { $invitation->markSent($messageId); } else { $invoice->markInvitationSent($invitation, $messageId, true, $notes);