BUGFIX: Score table in email displayed some html
authorArun Persaud <arun@nubati.net>
Mon, 3 Mar 2008 06:59:37 +0000 (22:59 -0800)
committerArun Persaud <arun@nubati.net>
Mon, 3 Mar 2008 06:59:37 +0000 (22:59 -0800)
had two str_replace functions in the wrong order, should be fixed now.

Signed-off-by: Arun Persaud <arun@nubati.net>
index.php

index c3988b5b0ae4f1c9435bccebf7fe6b17a5ed8dff..d0d9eef40362dd39d496864394eacac2b977134b 100644 (file)
--- 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("<div class=\"scoretable\">\n<table class=\"score\">\n <tr>\n","",$score);
+                 $score = str_replace("</table></div>\n","",$score);
                  $score = str_replace("\n","",$score);
                  $score = str_replace(array("<tr>","</tr>","<td>","</td>"),array("","\n","","|"),$score);
-                 $score = str_replace("</table></div>\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 */