diff --git a/app/invoices_dml.php b/app/invoices_dml.php index fa34d32..d24789d 100644 --- a/app/invoices_dml.php +++ b/app/invoices_dml.php @@ -573,7 +573,7 @@ function client_reload__RAND__() { $templateCode = str_replace('<%%VALUE(total)%%>', safe_html($urow['total']), $templateCode); $templateCode = str_replace('<%%URLVALUE(total)%%>', urlencode($urow['total']), $templateCode); if($AllowUpdate || $AllowInsert) { - $templateCode = str_replace('<%%HTMLAREA(comments)%%>', '', $templateCode); + $templateCode = str_replace('<%%HTMLAREA(comments)%%>', '', $templateCode); } else { $templateCode = str_replace('<%%HTMLAREA(comments)%%>', '
' . $row['comments'] . '
', $templateCode); }