bugfix - to short version - skipping comment moves

This commit is contained in:
DHTMLGoodies
2017-08-17 14:36:12 +02:00
parent 69466a1b45
commit ddeb4e8510

View File

@@ -202,6 +202,8 @@ class PgnParser
private function toShortVersion($branch)
{
foreach ($branch as &$move) {
if (isset($move["from"])) {
$move["n"] = $move["from"] . $move["to"];
#$move["n"] = $move["from"] . $move["to"];
@@ -217,6 +219,8 @@ class PgnParser
}
unset($move["variations"]);
}
}
return $branch;
}