Skip to content

Commit

Permalink
Merge pull request #1096 from Kitware/fix_undefined_var
Browse files Browse the repository at this point in the history
Define $status even when an exception gets thrown
  • Loading branch information
zackgalbreath authored Nov 13, 2020
2 parents ddc2fcf + 478d23e commit 0c5e3ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/cdash/include/Messaging/Notification/Email/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public function send(EmailMessage $message)
try {
$status = $swift_mailer->send($swift_message, $failed_recipients);
} catch (\Exception $e) {
$status = 0;
$log = Log::getInstance();
$log->add_log($e->getMessage(), __METHOD__);
}
Expand Down

0 comments on commit 0c5e3ab

Please sign in to comment.