Fix: Detection if html tag already in mail content

This commit is contained in:
Laurent Destailleur 2008-07-16 16:48:50 +00:00
parent 92f5244673
commit 92cc51d9ed

View File

@ -350,7 +350,7 @@ class CMailFile
{
// Check if html header already in message
$htmlalreadyinmsg=0;
if (eregi('^[ \t]*<html>',$msgtext)) $htmlalreadyinmsg=1;
if (eregi('^[ \t]*<html',$msgtext)) $htmlalreadyinmsg=1;
if (! $htmlalreadyinmsg) $out .= "<html><head><title></title></head><body>";
$out.= $msgtext;