summaryrefslogtreecommitdiffstats
path: root/include/cancelgame.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/cancelgame.php')
-rw-r--r--include/cancelgame.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/cancelgame.php b/include/cancelgame.php
index fba950e..5b85534 100644
--- 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 */
-$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".