projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mysql optimization: don't quote integers as strings in WHERE
[e-DoKo.git]
/
include
/
cancelgame.php
diff --git
a/include/cancelgame.php
b/include/cancelgame.php
index d9b69b3c96d05a038bba5e092e9c925f39c4eff8..02b5a06fd0f4349d515995275ecb8daae6f7e07a 100644
(file)
--- a/
include/cancelgame.php
+++ b/
include/cancelgame.php
@@
-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 */