summaryrefslogtreecommitdiffstats
path: root/include/cancelgame.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-02-13 23:40:26 -0800
committerArun Persaud <arun@nubati.net>2009-02-23 21:32:21 -0800
commitd661e260855977d34672388cfa8766de55a73f93 (patch)
tree4cf71a8f98d37a2adcf5d4cd97d06536eb86467b /include/cancelgame.php
parentf7e3acc9f015115707b7b6d59d8ebdb2522b9d0d (diff)
downloade-DoKo-d661e260855977d34672388cfa8766de55a73f93.tar.gz
e-DoKo-d661e260855977d34672388cfa8766de55a73f93.tar.bz2
e-DoKo-d661e260855977d34672388cfa8766de55a73f93.zip
CLEANUP: make emails more uniform
provide a standard header and footer. Also prepare for emails to be send to the database for later delivery.
Diffstat (limited to 'include/cancelgame.php')
-rw-r--r--include/cancelgame.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cancelgame.php b/include/cancelgame.php
index 357d226..2240203 100644
--- a/include/cancelgame.php
+++ b/include/cancelgame.php
@@ -44,8 +44,8 @@ if(time()-strtotime($r[0]) > 60*60*24*30) /* = 1 month */
$userids = DB_get_all_userid_by_gameid($gameid);
foreach($userids as $user)
{
- $To = DB_get_email('userid',$user);
- mymail($To,$EmailName."game ".DB_format_gameid($gameid)." canceled (timed out)",$message);
+ $subject = "Game ".DB_format_gameid($gameid)." canceled (timed out)";
+ mymail($user,$subject,$message);
}
/* delete everything from the dB */