diff options
author | Arun Persaud <arun@nubati.net> | 2008-05-06 20:08:53 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-05-06 21:39:01 -0700 |
commit | 086ed1db2ec28817b3370481455c84ceaf6448c2 (patch) | |
tree | 06111f54d262f69a5e3ff82f59d80b2e7bc5e73f /include/reminder.php | |
parent | a0f87f33ef571a47b143ae06530b64c8496f2f6e (diff) | |
download | e-DoKo-086ed1db2ec28817b3370481455c84ceaf6448c2.tar.gz e-DoKo-086ed1db2ec28817b3370481455c84ceaf6448c2.tar.bz2 e-DoKo-086ed1db2ec28817b3370481455c84ceaf6448c2.zip |
CLEANUP: removed all calls to mysql functions and replaced them with calls to DB_xxx
should be very easy now to change to a different database. also made the code look nicer ;)
Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/reminder.php')
-rw-r--r-- | include/reminder.php | 3 |
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]); |