fix: fix syntax error in game creation

This commit is contained in:
Emmanuel BENOîT 2024-12-31 14:50:59 +01:00
parent 96b1365974
commit a80d211a41
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

View file

@ -96,16 +96,16 @@ class dbParser {
$state = 0; $state = 0;
for ($i = 0; $i < strlen($line); $i ++) { for ($i = 0; $i < strlen($line); $i ++) {
if ($state == 0) { if ($state == 0) {
if ($line{$i} == ';') { if ($line[$i] == ';') {
return array(true, $buffer); return array(true, $buffer);
} }
$buffer .= $line{$i}; $buffer .= $line[$i];
if ($line{$i} == "'") { if ($line[$i] == "'") {
$state = 1; $state = 1;
} }
} else { } else {
$buffer .= $line{$i}; $buffer .= $line[$i];
if ($line{$i} == "'") { if ($line[$i] == "'") {
$state = 0; $state = 0;
} }
} }