From: Arun Persaud Date: Mon, 3 Mar 2008 06:59:37 +0000 (-0800) Subject: BUGFIX: Score table in email displayed some html X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=cdee8a3e86f57ac0ace7fad8612b0b809b9d08a4 BUGFIX: Score table in email displayed some html had two str_replace functions in the wrong order, should be fixed now. Signed-off-by: Arun Persaud --- diff --git a/index.php b/index.php index c3988b5..d0d9eef 100644 --- a/index.php +++ b/index.php @@ -1747,9 +1747,9 @@ else if(myisset("me")) $score = generate_score_table($session); /* convert html to ascii */ $score = str_replace("
\n\n \n","",$score); + $score = str_replace("
\n","",$score); $score = str_replace("\n","",$score); $score = str_replace(array("","","",""),array("","\n","","|"),$score); - $score = str_replace("\n","",$score); $score = explode("\n",$score); $header = array_slice($score,0,1); @@ -1772,7 +1772,7 @@ else if(myisset("me")) $score = implode("\n",$score); $score = $header.$score; - $message .= "Score Table\n"; + $message .= "Score Table:\n"; $message .= $score; /* send out final email */