X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fgame.php;h=0ca24544939bd8e707bdd06c19b363b94b208d8e;hp=b339c03c38bb410f6b280e93ddd044ac9776ad22;hb=5116d22ed84db0f15a7f583bcbe243ee2cd606e1;hpb=94bbb934cb0bc65c72e2ab724f4bf99b3c7207be diff --git a/include/game.php b/include/game.php index b339c03..0ca2454 100644 --- a/include/game.php +++ b/include/game.php @@ -184,7 +184,7 @@ if( myisset('call') ) /* get time from the last action of the game */ -$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)); $gameend = time() - strtotime($r[0]); /* handle comments in case player didn't play a card, allow comments a week after the end of the game */ @@ -398,11 +398,11 @@ switch($mystatus) if(!( $mygametype == 'solo' && $mygamesolo == 'silent') ) echo "
This game took '.$r[0]." hours.
\n"; echo "