[0005735] Problems with sending emails with encoding other than ASCII - fixed.
[fa-stable.git] / reporting / rep108.php
index f2d6d42387ad5b5f368f51d802bdeb1f5a0f2fd8..3c8b7310603de03df262b8358108855624bab293 100644 (file)
@@ -177,7 +177,7 @@ function print_statements()
                if ($email == 1)
                {
             if (($CustomerRecord["Balance"]) != ($CustomerRecord["Balance"] - $CustomerRecord["Due"]))
-                $rep->End($email, _("Statement") . " " . _("as of") . " " . sql2date($date) . " " . _("from") . " " . get_company_pref('coy_name'));
+                $rep->End($email, _("Statement") . " " . _("as of") . " " . sql2date($date) . " " . _("from") . " " . htmlspecialchars_decode(get_company_pref('coy_name')));
             else
                 display_notification(sprintf(_("Customer %s has no overdue debits. No e-mail is sent."), $myrow["DebtorName"]));       
         }