Commit f2c0bb13 authored by Sebastian Castro's avatar Sebastian Castro

Fixs sentry bug

parent 9ace1d3d
......@@ -145,7 +145,8 @@ class ElementPendingService
private function sendMailToContributorAfterValidationOrRefusal($element, $isAccepted, $validationType, $message = null)
{
if (!$message) $message = $element->getCurrContribution()->getResolvedMessage();
if (!$message && $element->getCurrContribution()) $message = $element->getCurrContribution()->getResolvedMessage();
else $message = "";
$this->mailService->sendAutomatedMail($isAccepted ? 'validation' : 'refusal', $element, $message);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment