diff --git a/common.inc.php b/common.inc.php index 5fe569b..b8497aa 100644 --- a/common.inc.php +++ b/common.inc.php @@ -730,14 +730,14 @@ function email_send($val,$to,$sub_subject=array(),$sub_body=array()) { foreach($sub_subject AS $sub_k=>$sub_v) { - $subject=ereg_replace("\[$sub_k\]",$sub_v,$subject); + $subject=ereg_replace("\[$sub_k\]","$sub_v",$subject); } } if(count($sub_body)) { foreach($sub_body AS $sub_k=>$sub_v) { - $body=ereg_replace("\[$sub_k\]",$sub_v,$body); + $body=ereg_replace("\[$sub_k\]","$sub_v",$body); } }