projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix error when language is not set
[e-DoKo.git]
/
include
/
cancelgame.php
diff --git
a/include/cancelgame.php
b/include/cancelgame.php
index d9b69b3c96d05a038bba5e092e9c925f39c4eff8..a1de5e4caa4cb7f7883f170e389fcd1772452bfe 100644
(file)
--- a/
include/cancelgame.php
+++ b/
include/cancelgame.php
@@
-1,5
+1,5
@@
<?php
<?php
-/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Arun Persaud <arun@nubati.net>
+/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
, 2014, 2016
Arun Persaud <arun@nubati.net>
*
* This file is part of e-DoKo.
*
*
* This file is part of e-DoKo.
*
@@
-49,7
+49,7
@@
$gameid = DB_get_gameid_by_hash($me);
$myname = DB_get_name('hash',$me);
/* check if game really is old enough to be canceled */
$myname = DB_get_name('hash',$me);
/* check if game really is old enough to be canceled */
-$r = DB_query_array("SELECT mod_date from Game WHERE id=
'$gameid' "
);
+$r = DB_query_array("SELECT mod_date from Game WHERE id=
".DB_quote_smart($gameid)
);
if(time()-strtotime($r[0]) > 60*60*24*30) /* = 1 month */
{
/* email to all players */
if(time()-strtotime($r[0]) > 60*60*24*30) /* = 1 month */
{
/* email to all players */