From a80d211a414df373d519fdd46c704ba0e980b952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Tue, 31 Dec 2024 14:50:59 +0100 Subject: [PATCH] fix: fix syntax error in game creation --- admin/cg_step5.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/cg_step5.php b/admin/cg_step5.php index eb08050..e47e60f 100644 --- a/admin/cg_step5.php +++ b/admin/cg_step5.php @@ -96,16 +96,16 @@ class dbParser { $state = 0; for ($i = 0; $i < strlen($line); $i ++) { if ($state == 0) { - if ($line{$i} == ';') { + if ($line[$i] == ';') { return array(true, $buffer); } - $buffer .= $line{$i}; - if ($line{$i} == "'") { + $buffer .= $line[$i]; + if ($line[$i] == "'") { $state = 1; } } else { - $buffer .= $line{$i}; - if ($line{$i} == "'") { + $buffer .= $line[$i]; + if ($line[$i] == "'") { $state = 0; } }