diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index c0895185752a..dabaa2d19bfa 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1232,8 +1232,6 @@ public static function sendMail($contactID, $values, $participantId, $isTest = F $values['event'] ); // append invoice pdf to email - $template = CRM_Core_Smarty::singleton(); - $taxAmt = $template->get_template_vars('totalTaxAmount'); $prefixValue = Civi::settings()->get('contribution_invoice_settings'); $invoicing = CRM_Utils_Array::value('invoicing', $prefixValue); if (isset($invoicing) && isset($prefixValue['is_email_pdf']) && !empty($values['contributionId'])) {