BUGFIX: one email message still had a hard-coded header
authorArun Persaud <arun@nubati.net>
Tue, 12 May 2009 05:18:42 +0000 (22:18 -0700)
committerArun Persaud <arun@nubati.net>
Tue, 12 May 2009 05:18:42 +0000 (22:18 -0700)
this resulted in two "hello" lines being sent out. fixed

include/cancelgame.php

index b0b4db9ba392bd1babc919d86deccf048f2b9056..22be185608c9445cc963199b316b08beba7cd1e4 100644 (file)
@@ -36,8 +36,7 @@ $myname   = DB_get_name('hash',$me);
 $r = DB_query_array("SELECT mod_date from Game WHERE id='$gameid' " );
 if(time()-strtotime($r[0]) > 60*60*24*30) /* = 1 month */
   {
-    $message = "Hello, \n\n".
-      "Game ".DB_format_gameid($gameid).
+    $message = "Game ".DB_format_gameid($gameid).
       " has been canceled since nothing happend for a while and $myname requested it.\n\n";
 
     /* email to all players */