fix php parse error

This commit is contained in:
Gnieark 2015-12-11 17:23:58 +01:00
parent 06637cee3d
commit 2a1461e2f6

View File

@ -214,7 +214,7 @@ function save_battle($game,$bot1,$bot2,$resultat){
ON DUPLICATE KEY UPDATE ".$field." = ".$field." + 1;"); ON DUPLICATE KEY UPDATE ".$field." = ".$field." + 1;");
} }
function get_unique_id(){ function get_unique_id(){
$fp = fopen(__DIR__'countBattles.txt', 'c+'); $fp = fopen(__DIR__.'countBattles.txt', 'c+');
flock($fp, LOCK_EX); flock($fp, LOCK_EX);
$count = (int)fread($fp, filesize('count.txt')); $count = (int)fread($fp, filesize('count.txt'));