fix: fix syntax error in game creation
This commit is contained in:
parent
96b1365974
commit
a80d211a41
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue