summaryrefslogtreecommitdiffstats
path: root/include/reminder.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/reminder.php')
-rw-r--r--include/reminder.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/reminder.php b/include/reminder.php
index a269478..8844e48 100644
--- a/include/reminder.php
+++ b/include/reminder.php
@@ -35,8 +35,7 @@ $gameid = DB_get_gameid_by_hash($me);
$myname = DB_get_name('hash',$me);
/* check if player hasn't done anything in a while */
-$result = mysql_query("SELECT mod_date,player,status from Game WHERE id='$gameid' " );
-$r = mysql_fetch_array($result,MYSQL_NUM);
+$r = DB_query_array("SELECT mod_date,player,status from Game WHERE id='$gameid' " );
if( (time()-strtotime($r[0]) > 60*60*24*7) && ($r[2]!='gameover') ) /* = 1 week */
{
$name = DB_get_name('userid',$r[1]);