Erreur de syntaxe...

This commit is contained in:
Georges Dupéron 2011-03-16 11:04:16 +01:00
parent 977ee7618a
commit 4df3c3c963

View File

@ -73,7 +73,7 @@ function main()
$scores = setGame($user, intval($_GET['pgid']), intval($_GET['gid']), $_GET);
// On renvoie une nouvelle partie pour garder le client toujours bien alimenté.
echo "{\"scoreTotal\":".$scores['total'];
echo ',"scores":['
echo ',"scores":[';
for (i = 0; i < $scores['nb']; i++) {
if (i != 0) echo ',';
echo $scores[i];