diff --git a/classes/Mail.php b/classes/Mail.php index fb12171da..f8de31491 100644 --- a/classes/Mail.php +++ b/classes/Mail.php @@ -212,7 +212,7 @@ class MailCore else if (!file_exists($template_path.$template.'.html') && ($configuration['PS_MAIL_TYPE'] == Mail::TYPE_BOTH || $configuration['PS_MAIL_TYPE'] == Mail::TYPE_HTML)) { Tools::dieOrLog(Tools::displayError('Error - The following e-mail template is missing:').' '.$template_path.$template.'.html', $die); - reutrn false; + return false; } $template_html = file_get_contents($template_path.$template.'.html'); $template_txt = strip_tags(html_entity_decode(file_get_contents($template_path.$template.'.txt'), null, 'utf-8'));