remove wrong file_put_contents
This commit is contained in:
@@ -104,8 +104,6 @@ class PgnParser
|
|||||||
$content = "\n\n" . $pgn;
|
$content = "\n\n" . $pgn;
|
||||||
$games = preg_split("/\n\n\[/s", $content, -1, PREG_SPLIT_DELIM_CAPTURE);
|
$games = preg_split("/\n\n\[/s", $content, -1, PREG_SPLIT_DELIM_CAPTURE);
|
||||||
|
|
||||||
file_put_contents("parsed.pgn", $content);
|
|
||||||
|
|
||||||
for ($i = 1, $count = count($games); $i < $count; $i++) {
|
for ($i = 1, $count = count($games); $i < $count; $i++) {
|
||||||
$gameContent = trim("[" . $games[$i]);
|
$gameContent = trim("[" . $games[$i]);
|
||||||
if (strlen($gameContent) > 10) {
|
if (strlen($gameContent) > 10) {
|
||||||
|
Reference in New Issue
Block a user