Use email_greeting where possible in receipts
[civicrm-core.git] / xml / templates / message_templates / event_online_receipt_html.tpl
index f7ebf3663efd15343b1bb75cea531928c0bc1d56..ec0dab4432d4f4fc8b53df80e6ac402f269c0e10 100644 (file)
@@ -25,7 +25,7 @@
 
   <tr>
    <td>
-  <p>{contact.email_greeting},</p>
+     {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
 
     {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
      <p>{$event.confirm_email_text|htmlize}</p>