summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-03-02 22:59:37 -0800
committerArun Persaud <arun@nubati.net>2008-03-02 22:59:37 -0800
commitcdee8a3e86f57ac0ace7fad8612b0b809b9d08a4 (patch)
tree4069e39427a2eb861fff4da0f02a6e7d83c6db3f
parentfc2fadb0033767d7e75ff501af60b6120f982f77 (diff)
downloade-DoKo-cdee8a3e86f57ac0ace7fad8612b0b809b9d08a4.tar.gz
e-DoKo-cdee8a3e86f57ac0ace7fad8612b0b809b9d08a4.tar.bz2
e-DoKo-cdee8a3e86f57ac0ace7fad8612b0b809b9d08a4.zip
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 <arun@nubati.net>
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
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("<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 */