projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BUGIFX: game didn't get started in normal poverty games
[e-DoKo.git]
/
include
/
cancelgame.php
diff --git
a/include/cancelgame.php
b/include/cancelgame.php
index fba950ee7a20934306626f44599835ae063ec3e1..5b855347bab0794f65e220de04579e9e214fef58 100644
(file)
--- a/
include/cancelgame.php
+++ b/
include/cancelgame.php
@@
-35,8
+35,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 */
-$result = mysql_query("SELECT mod_date from Game WHERE id='$gameid' " );
-$r = mysql_fetch_array($result,MYSQL_NUM);
+$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".
if(time()-strtotime($r[0]) > 60*60*24*30) /* = 1 month */
{
$message = "Hello, \n\n".